Fix the usage of COLOR_xxx constants in the place of the window's class hbrBackground

Dmitry Timoshkov dmitry at baikal.ru
Tue Sep 20 01:50:29 CDT 2005


Hello,

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Fix the usage of COLOR_xxx constants in the place of the window's
    class hbrBackground.

diff -up cvs/hq/wine/dlls/hhctrl.ocx/help.c wine/dlls/hhctrl.ocx/help.c
--- cvs/hq/wine/dlls/hhctrl.ocx/help.c	2005-09-20 12:52:39.000000000 +0900
+++ wine/dlls/hhctrl.ocx/help.c	2005-09-20 13:07:29.000000000 +0900
@@ -149,7 +149,7 @@ static void HH_RegisterChildWndClass(HHI
     wcex.hInstance      = pHHInfo->hInstance;
     wcex.hIcon          = LoadIconW(NULL, (LPCWSTR)IDI_APPLICATION);
     wcex.hCursor        = LoadCursorW(NULL, (LPCWSTR)IDC_ARROW);
-    wcex.hbrBackground  = (HBRUSH)(COLOR_3DFACE);
+    wcex.hbrBackground  = (HBRUSH)(COLOR_3DFACE + 1);
     wcex.lpszMenuName   = NULL;
     wcex.lpszClassName  = szChildClass;
     wcex.hIconSm        = LoadIconW(NULL, (LPCWSTR)IDI_APPLICATION);
diff -up cvs/hq/wine/dlls/msi/dialog.c wine/dlls/msi/dialog.c
--- cvs/hq/wine/dlls/msi/dialog.c	2005-09-18 12:36:18.000000000 +0900
+++ wine/dlls/msi/dialog.c	2005-09-20 13:03:41.000000000 +0900
@@ -1976,7 +1976,7 @@ BOOL msi_dialog_register_class( void )
     cls.hInstance     = NULL;
     cls.hIcon         = LoadIconW(0, (LPWSTR)IDI_APPLICATION);
     cls.hCursor       = LoadCursorW(0, (LPWSTR)IDC_ARROW);
-    cls.hbrBackground = (HBRUSH)(COLOR_WINDOW);
+    cls.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
     cls.lpszMenuName  = NULL;
     cls.lpszClassName = szMsiDialogClass;
 
diff -up cvs/hq/wine/dlls/shlwapi/ordinal.c wine/dlls/shlwapi/ordinal.c
--- cvs/hq/wine/dlls/shlwapi/ordinal.c	2005-08-16 21:32:45.000000000 +0900
+++ wine/dlls/shlwapi/ordinal.c	2005-09-20 13:05:59.000000000 +0900
@@ -2593,7 +2593,7 @@ HWND WINAPI SHCreateWorkerWindowA(LONG w
   wc.hInstance     = shlwapi_hInstance;
   wc.hIcon         = NULL;
   wc.hCursor       = LoadCursorA(NULL, (LPSTR)IDC_ARROW);
-  wc.hbrBackground = (HBRUSH)COLOR_BTNSHADOW;
+  wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
   wc.lpszMenuName  = NULL;
   wc.lpszClassName = szClass;
 
@@ -2880,7 +2880,7 @@ HWND WINAPI SHCreateWorkerWindowW(LONG w
   wc.hInstance     = shlwapi_hInstance;
   wc.hIcon         = NULL;
   wc.hCursor       = LoadCursorW(NULL, (LPWSTR)IDC_ARROW);
-  wc.hbrBackground = (HBRUSH)COLOR_BTNSHADOW;
+  wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
   wc.lpszMenuName  = NULL;
   wc.lpszClassName = szClass;
 
diff -up cvs/hq/wine/programs/notepad/main.c wine/programs/notepad/main.c
--- cvs/hq/wine/programs/notepad/main.c	2005-05-14 15:31:07.000000000 +0900
+++ wine/programs/notepad/main.c	2005-09-20 13:06:33.000000000 +0900
@@ -345,7 +345,7 @@ int PASCAL WinMain(HINSTANCE hInstance, 
     class.hInstance     = Globals.hInstance;
     class.hIcon         = LoadIcon(0, IDI_APPLICATION);
     class.hCursor       = LoadCursor(0, IDC_ARROW);
-    class.hbrBackground = (HBRUSH)(COLOR_WINDOW);
+    class.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
     class.lpszMenuName  = MAKEINTRESOURCE(MAIN_MENU);
     class.lpszClassName = className;
 






More information about the wine-patches mailing list