Updown: keep track of WS_DISABLED

Dimitrie O. Paun dpaun at rogers.com
Thu Apr 14 07:46:33 CDT 2005


ChangeLog
    Keep track of WS_DISABLED explicitely, as it doesn't
    generate a WM_STYLECHANGED message.


Index: dlls/comctl32/updown.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/updown.c,v
retrieving revision 1.66
diff -u -p -r1.66 updown.c
--- dlls/comctl32/updown.c	25 Mar 2005 10:27:11 -0000	1.66
+++ dlls/comctl32/updown.c	14 Apr 2005 12:44:29 -0000
@@ -775,6 +775,8 @@ static LRESULT WINAPI UpDownWindowProc(H
 	    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;

-- 
Dimi.



More information about the wine-patches mailing list