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;
|
break;
|
||||||
|
|
||||||
case WM_ENABLE:
|
case WM_ENABLE:
|
||||||
infoPtr->dwStyle &= ~WS_DISABLED;
|
if (wParam) {
|
||||||
infoPtr->dwStyle |= (wParam ? 0 : WS_DISABLED);
|
infoPtr->dwStyle &= ~WS_DISABLED;
|
||||||
if (infoPtr->dwStyle & WS_DISABLED) UPDOWN_CancelMode (infoPtr);
|
} else {
|
||||||
|
infoPtr->dwStyle |= WS_DISABLED;
|
||||||
|
UPDOWN_CancelMode (infoPtr);
|
||||||
|
}
|
||||||
InvalidateRect (infoPtr->Self, NULL, FALSE);
|
InvalidateRect (infoPtr->Self, NULL, FALSE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue