Re: updown: proper handling for GWL_STYLE
25 Mar
2005
25 Mar
'05
6:09 p.m.
Dimitrie O. Paun wrote:
ChangeLog Proper handling for GWL_STYLE. Minor cleanups. case WM_ENABLE: - if (dwStyle & WS_DISABLED) UPDOWN_CancelMode (infoPtr); + if (infoPtr->dwStyle & WS_DISABLED) UPDOWN_CancelMode (infoPtr); InvalidateRect (infoPtr->Self, NULL, FALSE); break;
You need to update infoPtr->dwStyle here. EnableWindow(FALSE) does not generate a WM_STYLECHANGED message.
+ case WM_STYLECHANGED: + if (wParam == GWL_STYLE) { + infoPtr->dwStyle = ((LPSTYLESTRUCT)lParam)->styleNew; + InvalidateRect (infoPtr->Self, NULL, FALSE); + } + break; +
Rob
7568
Age (days ago)
7568
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Shearman