mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
Keep track of WS_DISABLED explicitely, as it doesn't generate a
WM_STYLECHANGED message.
This commit is contained in:
parent
2e0a14820b
commit
f35db0144c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user