Commit 8242b651 authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

regedit: Use the default WM_PAINT implementation for REGEDIT window.

parent 734190a7
...@@ -79,17 +79,6 @@ static void ResizeWnd(int cx, int cy) ...@@ -79,17 +79,6 @@ static void ResizeWnd(int cx, int cy)
EndDeferWindowPos(hdwp); EndDeferWindowPos(hdwp);
} }
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);
}
static LPWSTR CombinePaths(LPCWSTR pPaths[], int nPaths) { static LPWSTR CombinePaths(LPCWSTR pPaths[], int nPaths) {
int i, len, pos; int i, len, pos;
LPWSTR combined; LPWSTR combined;
...@@ -455,9 +444,6 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa ...@@ -455,9 +444,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) {
POINT pt; POINT pt;
......
...@@ -75,6 +75,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) ...@@ -75,6 +75,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
wndclass.lpfnWndProc = ChildWndProc; wndclass.lpfnWndProc = ChildWndProc;
wndclass.cbWndExtra = sizeof(HANDLE); wndclass.cbWndExtra = sizeof(HANDLE);
wndclass.lpszClassName = szChildClass; wndclass.lpszClassName = szChildClass;
wndclass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
RegisterClassExW(&wndclass); RegisterClassExW(&wndclass);
hMenuFrame = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDR_REGEDIT_MENU)); hMenuFrame = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDR_REGEDIT_MENU));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment