Commit 2ddbc7b6 authored by Michael Kaufmann's avatar Michael Kaufmann Committed by Alexandre Julliard

static control: STN_ENABLE and STN_DISABLE notifications.

parent 2b8cda71
......@@ -31,10 +31,6 @@
* Styles
* - SS_RIGHTJUST
*
* Notifications
* - STN_DISABLE
* - STN_ENABLE
*
* Messages
* - STM_SETIMAGE: IMAGE_CURSOR
*/
......@@ -391,7 +387,17 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
break;
case WM_ENABLE:
InvalidateRect(hwnd, NULL, TRUE);
STATIC_TryPaintFcn( hwnd, full_style );
if (full_style & SS_NOTIFY) {
if (wParam) {
SendMessageW( GetParent(hwnd), WM_COMMAND,
MAKEWPARAM( GetWindowLongPtrW(hwnd,GWLP_ID), STN_ENABLE ), (LPARAM)hwnd);
}
else {
SendMessageW( GetParent(hwnd), WM_COMMAND,
MAKEWPARAM( GetWindowLongPtrW(hwnd,GWLP_ID), STN_DISABLE ), (LPARAM)hwnd);
}
}
break;
case WM_SYSCOLORCHANGE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment