回复 41楼 hellovfp
他对内核和原理的东西理解的很透彻 所以能随手拈来一个很有代表性的程序

梅尚程荀
马谭杨奚
BOOL Create(HINSTANCE hInst, int nCmdShow) { hInstance = hInst; // Connect with the global instance HWND hWnd = CreateWindowEx(0, szAppName, szAppName, WS_OVERLAPPEDWINDOW, 60, 60, 100, 100, NULL, NULL, hInst, NULL); ------
void yrjd_OnSize(HWND hWnd, UINT state, int cxClient, int cyClient) { MoveWindow(hWnd, 20, 20, cxClient/2 , cyClient/2 , TRUE); ; }
// Set the circle window and set the "top most" HRGN hRgn = CreateEllipticRgn(0, 0, CLOCK_SIZE + 1, CLOCK_SIZE + 1); SetWindowRgn(hWndMain, hRgn, TRUE); DeleteObject(hRgn); SetWindowPos(hWndMain, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);发现上面这个代码把SetWindowPos注释掉对程序没影响啊