Module: wine Branch: refs/heads/master Commit: 2ddbc7b6e0954ae6db9f0e5c45a3d75ea30c4ea4 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2ddbc7b6e0954ae6db9f0e5c...
Author: Michael Kaufmann hallo@michael-kaufmann.ch Date: Tue Jan 17 16:06:41 2006 +0100
static control: STN_ENABLE and STN_DISABLE notifications.
---
dlls/user/static.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/dlls/user/static.c b/dlls/user/static.c index bd28668..212f4c6 100644 --- a/dlls/user/static.c +++ b/dlls/user/static.c @@ -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( HWN 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: