mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[REGEDIT] Don't paint background in WM_PAINT (#970)
Use the background brush or WM_ERASEBKGND message instead. There was graphical glidge. CORE-15187
This commit is contained in:
parent
3dffe964a3
commit
e4c2cff6c8
2 changed files with 1 additions and 15 deletions
|
@ -105,17 +105,6 @@ static void draw_splitbar(HWND hWnd, int x)
|
||||||
ReleaseDC(hWnd, hdc);
|
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]
|
* finish_splitbar [internal]
|
||||||
*
|
*
|
||||||
|
@ -384,7 +373,6 @@ UpdateAddress(HTREEITEM hItem, HKEY hRootKey, LPCWSTR pszPath)
|
||||||
* PURPOSE: Processes messages for the child windows.
|
* PURPOSE: Processes messages for the child windows.
|
||||||
*
|
*
|
||||||
* WM_COMMAND - process the application menu
|
* WM_COMMAND - process the application menu
|
||||||
* WM_PAINT - Paint the main window
|
|
||||||
* WM_DESTROY - post a quit message and return
|
* WM_DESTROY - post a quit message and return
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -449,9 +437,6 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
goto def;
|
goto def;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WM_PAINT:
|
|
||||||
OnPaint(hWnd);
|
|
||||||
return 0;
|
|
||||||
case WM_SETCURSOR:
|
case WM_SETCURSOR:
|
||||||
if (LOWORD(lParam) == HTCLIENT)
|
if (LOWORD(lParam) == HTCLIENT)
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,6 +71,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||||
IMAGE_ICON, GetSystemMetrics(SM_CXSMICON),
|
IMAGE_ICON, GetSystemMetrics(SM_CXSMICON),
|
||||||
GetSystemMetrics(SM_CYSMICON), LR_SHARED);
|
GetSystemMetrics(SM_CYSMICON), LR_SHARED);
|
||||||
wcFrame.hCursor = LoadCursorW(NULL, IDC_ARROW);
|
wcFrame.hCursor = LoadCursorW(NULL, IDC_ARROW);
|
||||||
|
wcFrame.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1);
|
||||||
wcFrame.lpszClassName = szFrameClass;
|
wcFrame.lpszClassName = szFrameClass;
|
||||||
|
|
||||||
hFrameWndClass = RegisterClassExW(&wcFrame); /* register frame window class */
|
hFrameWndClass = RegisterClassExW(&wcFrame); /* register frame window class */
|
||||||
|
|
Loading…
Reference in a new issue