7,540
社区成员
发帖
与我相关
我的任务
分享
//To paint the top half of a window, use code like the following.
GetClient Rect(hwnd, &rc);//这句看不懂啊!GetClient是什么东西啊?
rc.bottom = (rc.bottom - rc.top) / 2;
hdc = GetDC(hwnd);
EnumDisplayMonitors(hdc, &rc, MyPaintEnumProc, 0);
ReleaseDC(hwnd, hdc);