Commit e054fc23 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

user32: Don't paint new button styles instead of crashing.

parent 6c358146
...@@ -113,7 +113,7 @@ static void UB_Paint( HWND hwnd, HDC hDC, UINT action ); ...@@ -113,7 +113,7 @@ static void UB_Paint( HWND hwnd, HDC hDC, UINT action );
static void OB_Paint( HWND hwnd, HDC hDC, UINT action ); static void OB_Paint( HWND hwnd, HDC hDC, UINT action );
static void BUTTON_CheckAutoRadioButton( HWND hwnd ); static void BUTTON_CheckAutoRadioButton( HWND hwnd );
#define MAX_BTN_TYPE 12 #define MAX_BTN_TYPE 16
static const WORD maxCheckState[MAX_BTN_TYPE] = static const WORD maxCheckState[MAX_BTN_TYPE] =
{ {
...@@ -127,7 +127,7 @@ static const WORD maxCheckState[MAX_BTN_TYPE] = ...@@ -127,7 +127,7 @@ static const WORD maxCheckState[MAX_BTN_TYPE] =
BUTTON_UNCHECKED, /* BS_GROUPBOX */ BUTTON_UNCHECKED, /* BS_GROUPBOX */
BUTTON_UNCHECKED, /* BS_USERBUTTON */ BUTTON_UNCHECKED, /* BS_USERBUTTON */
BUTTON_CHECKED, /* BS_AUTORADIOBUTTON */ BUTTON_CHECKED, /* BS_AUTORADIOBUTTON */
BUTTON_UNCHECKED, /* Not defined */ BUTTON_UNCHECKED, /* BS_PUSHBOX */
BUTTON_UNCHECKED /* BS_OWNERDRAW */ BUTTON_UNCHECKED /* BS_OWNERDRAW */
}; };
...@@ -145,7 +145,7 @@ static const pfPaint btnPaintFunc[MAX_BTN_TYPE] = ...@@ -145,7 +145,7 @@ static const pfPaint btnPaintFunc[MAX_BTN_TYPE] =
GB_Paint, /* BS_GROUPBOX */ GB_Paint, /* BS_GROUPBOX */
UB_Paint, /* BS_USERBUTTON */ UB_Paint, /* BS_USERBUTTON */
CB_Paint, /* BS_AUTORADIOBUTTON */ CB_Paint, /* BS_AUTORADIOBUTTON */
NULL, /* Not defined */ NULL, /* BS_PUSHBOX */
OB_Paint /* BS_OWNERDRAW */ OB_Paint /* BS_OWNERDRAW */
}; };
......
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