diff --git a/src/msw/button.cpp b/src/msw/button.cpp index b17908b014..b88fec20b0 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -1088,7 +1088,7 @@ void DrawXPBackground(wxButton *button, HDC hdc, RECT& rectBtn, UINT state) // this array is indexed by wxButton::State values and so must be kept in // sync with it - static const uxStates[] = + static const int uxStates[] = { PBS_NORMAL, PBS_HOT, PBS_PRESSED, PBS_DISABLED, PBS_DEFAULTED };