ReleaseDC(hWnd, hdc);
}
-static void OnPaint(HWND hWnd)
-{
- PAINTSTRUCT ps;
- RECT rt;
-
- GetClientRect(hWnd, &rt);
- BeginPaint(hWnd, &ps);
- FillRect(ps.hdc, &rt, GetSysColorBrush(COLOR_BTNFACE));
- EndPaint(hWnd, &ps);
-}
-
/*******************************************************************************
* finish_splitbar [internal]
*
* PURPOSE: Processes messages for the child windows.
*
* WM_COMMAND - process the application menu
- * WM_PAINT - Paint the main window
* WM_DESTROY - post a quit message and return
*
*/
goto def;
}
break;
- case WM_PAINT:
- OnPaint(hWnd);
- return 0;
case WM_SETCURSOR:
if (LOWORD(lParam) == HTCLIENT)
{
IMAGE_ICON, GetSystemMetrics(SM_CXSMICON),
GetSystemMetrics(SM_CYSMICON), LR_SHARED);
wcFrame.hCursor = LoadCursorW(NULL, IDC_ARROW);
+ wcFrame.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1);
wcFrame.lpszClassName = szFrameClass;
hFrameWndClass = RegisterClassExW(&wcFrame); /* register frame window class */