Set class hbrBackground and style to the same as native.
This commit is contained in:
parent
50c7fd4e85
commit
b2499c9757
|
@ -565,12 +565,12 @@ void IPADDRESS_Register (void)
|
|||
WNDCLASSW wndClass;
|
||||
|
||||
ZeroMemory (&wndClass, sizeof(WNDCLASSW));
|
||||
wndClass.style = CS_GLOBALCLASS;
|
||||
wndClass.lpfnWndProc = (WNDPROC)IPADDRESS_WindowProc;
|
||||
wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
|
||||
wndClass.lpfnWndProc = IPADDRESS_WindowProc;
|
||||
wndClass.cbClsExtra = 0;
|
||||
wndClass.cbWndExtra = sizeof(IPADDRESS_INFO *);
|
||||
wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_IBEAM);
|
||||
wndClass.hbrBackground = GetStockObject(WHITE_BRUSH);
|
||||
wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
|
||||
wndClass.lpszClassName = WC_IPADDRESSW;
|
||||
|
||||
RegisterClassW (&wndClass);
|
||||
|
|
|
@ -1270,11 +1270,11 @@ STATUS_Register (void)
|
|||
|
||||
ZeroMemory (&wndClass, sizeof(WNDCLASSW));
|
||||
wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_VREDRAW;
|
||||
wndClass.lpfnWndProc = (WNDPROC)StatusWindowProc;
|
||||
wndClass.lpfnWndProc = StatusWindowProc;
|
||||
wndClass.cbClsExtra = 0;
|
||||
wndClass.cbWndExtra = sizeof(STATUSWINDOWINFO *);
|
||||
wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
|
||||
wndClass.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1);
|
||||
wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
|
||||
wndClass.lpszClassName = STATUSCLASSNAMEW;
|
||||
|
||||
RegisterClassW (&wndClass);
|
||||
|
|
|
@ -1816,11 +1816,11 @@ void TRACKBAR_Register (void)
|
|||
|
||||
ZeroMemory (&wndClass, sizeof(WNDCLASSW));
|
||||
wndClass.style = CS_GLOBALCLASS;
|
||||
wndClass.lpfnWndProc = (WNDPROC)TRACKBAR_WindowProc;
|
||||
wndClass.lpfnWndProc = TRACKBAR_WindowProc;
|
||||
wndClass.cbClsExtra = 0;
|
||||
wndClass.cbWndExtra = sizeof(TRACKBAR_INFO *);
|
||||
wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
|
||||
wndClass.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1);
|
||||
wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
|
||||
wndClass.lpszClassName = TRACKBAR_CLASSW;
|
||||
|
||||
RegisterClassW (&wndClass);
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue