7,655
社区成员
发帖
与我相关
我的任务
分享
case WM_PAINT:
HDC hdc;
HBRUSH hBr, hOldBr;
GetClientRect (hWnd, &rect);
hdc = BeginPaint (hWnd, &ps);
// Draw round rectangle.
hBr = (HBRUSH) GetStockObject (LTGRAY_BRUSH);
hOldBr = (HBRUSH) SelectObject (hdc, hBr);
RoundRect (hdc, 95, 50, 150, 130, 30, 30);
SelectObject (hdc, hOldBr);
EndPaint (hWnd, &ps);
break;