Up/down Control: Window Class Fix
Robert Shearman
rob at codeweavers.com
Mon Sep 13 15:29:26 CDT 2004
Note: COLOR_BTNFACE is the same value as COLOR_3DFACE, but COLOR_BTNFACE
is the recommended value to use.
Changelog:
Set hbrBackground class property to same value as native.
-------------- next part --------------
Index: wine/dlls/comctl32/updown.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/updown.c,v
retrieving revision 1.59
diff -u -p -r1.59 updown.c
--- wine/dlls/comctl32/updown.c 25 Aug 2004 17:33:01 -0000 1.59
+++ wine/dlls/comctl32/updown.c 13 Sep 2004 20:28:10 -0000
@@ -958,11 +958,11 @@ void UPDOWN_Register(void)
ZeroMemory( &wndClass, sizeof( WNDCLASSW ) );
wndClass.style = CS_GLOBALCLASS | CS_VREDRAW | CS_HREDRAW;
- wndClass.lpfnWndProc = (WNDPROC)UpDownWindowProc;
+ wndClass.lpfnWndProc = UpDownWindowProc;
wndClass.cbClsExtra = 0;
wndClass.cbWndExtra = sizeof(UPDOWN_INFO*);
wndClass.hCursor = LoadCursorW( 0, (LPWSTR)IDC_ARROW );
- wndClass.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1);
+ wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
wndClass.lpszClassName = UPDOWN_CLASSW;
RegisterClassW( &wndClass );
More information about the wine-patches
mailing list