updown: proper handling for GWL_STYLE

Robert Shearman rob at codeweavers.com
Fri Mar 25 12:09:44 CST 2005


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



More information about the wine-devel mailing list