Keep track of WS_DISABLED explicitely, as it doesn't generate a

WM_STYLECHANGED message.
This commit is contained in:
Dimitrie O. Paun 2005-04-14 13:58:45 +00:00 committed by Alexandre Julliard
parent 2e0a14820b
commit f35db0144c

View File

@ -775,6 +775,8 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
break;
case WM_ENABLE:
infoPtr->dwStyle &= ~WS_DISABLED;
infoPtr->dwStyle |= (wParam ? 0 : WS_DISABLED);
if (infoPtr->dwStyle & WS_DISABLED) UPDOWN_CancelMode (infoPtr);
InvalidateRect (infoPtr->Self, NULL, FALSE);
break;