oleview: Correctly set window's class background and cursor.

Otherwise background of some windows doesn't match current theme, and
mouse cursor sometimes gets stuck after moving over vertical splitter.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
Dmitry Timoshkov 2015-10-07 18:27:30 +08:00 committed by Alexandre Julliard
parent edb35ff096
commit e10db2f22e
5 changed files with 8 additions and 2 deletions

View File

@ -397,7 +397,8 @@ HWND CreateDetailsWindow(HINSTANCE hInst)
memset(&wcd, 0, sizeof(WNDCLASSW));
wcd.lpfnWndProc = DetailsProc;
wcd.lpszClassName = wszDetailsClass;
wcd.hbrBackground = (HBRUSH)COLOR_WINDOW;
wcd.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcd.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
if(!RegisterClassW(&wcd)) return NULL;

View File

@ -499,6 +499,7 @@ static BOOL InitApplication(HINSTANCE hInst)
memset(&wc, 0, sizeof(WNDCLASSW));
wc.lpfnWndProc = WndProc;
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wc.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
wc.lpszMenuName = MAKEINTRESOURCEW(IDM_MENU);
wc.lpszClassName = wszAppName;

View File

@ -135,7 +135,8 @@ BOOL PaneRegisterClassW(void)
memset(&wcc, 0, sizeof(WNDCLASSW));
wcc.lpfnWndProc = PaneProc;
wcc.hbrBackground = (HBRUSH)(COLOR_WINDOW);
wcc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcc.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
wcc.lpszClassName = wszPaneClass;
if(!RegisterClassW(&wcc))

View File

@ -703,6 +703,8 @@ HWND CreateTreeWindow(HINSTANCE hInst)
memset(&wct, 0, sizeof(WNDCLASSW));
wct.lpfnWndProc = TreeProc;
wct.lpszClassName = wszTreeClass;
wct.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wct.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
if(!RegisterClassW(&wct)) return NULL;

View File

@ -1628,6 +1628,7 @@ BOOL TypeLibRegisterClassW(void)
memset(&wcc, 0, sizeof(WNDCLASSW));
wcc.lpfnWndProc = TypeLibProc;
wcc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcc.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
wcc.lpszMenuName = MAKEINTRESOURCEW(IDM_TYPELIB);
wcc.lpszClassName = wszTypeLib;