Commit e10db2f2 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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: 's avatarDmitry Timoshkov <dmitry@baikal.ru>
parent edb35ff0
......@@ -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;
......
......@@ -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;
......
......@@ -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))
......
......@@ -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;
......
......@@ -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;
......
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