Make it more explicit how we deal with WS_DISABLED.
This commit is contained in:
parent
f483ca611e
commit
4f197f0f3d
|
@ -775,9 +775,12 @@ 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);
|
||||
if (wParam) {
|
||||
infoPtr->dwStyle &= ~WS_DISABLED;
|
||||
} else {
|
||||
infoPtr->dwStyle |= WS_DISABLED;
|
||||
UPDOWN_CancelMode (infoPtr);
|
||||
}
|
||||
InvalidateRect (infoPtr->Self, NULL, FALSE);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue