WM_NCACTIVATE takes the same lParam as WM_ACTIVATE
Dmitry Timoshkov
dmitry at baikal.ru
Tue Jan 27 09:27:39 CST 2004
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
MSDN is wrong: WM_NCACTIVATE takes the same lParam as WM_ACTIVATE.
--- cvs/hq/wine/dlls/user/focus.c 2003-11-29 18:32:15.000000000 +0800
+++ wine/dlls/user/focus.c 2004-01-27 23:19:09.000000000 +0800
@@ -94,7 +94,7 @@ static BOOL set_active_window( HWND hwnd
if (IsWindow(previous))
{
- SendMessageW( previous, WM_NCACTIVATE, FALSE, 0 );
+ SendMessageW( previous, WM_NCACTIVATE, FALSE, (LPARAM)hwnd );
SendMessageW( previous, WM_ACTIVATE,
MAKEWPARAM( WA_INACTIVE, IsIconic(previous) ), (LPARAM)hwnd );
}
@@ -153,7 +153,7 @@ static BOOL set_active_window( HWND hwnd
if (IsWindow(hwnd))
{
- SendMessageW( hwnd, WM_NCACTIVATE, (hwnd == GetForegroundWindow()), 0 );
+ SendMessageW( hwnd, WM_NCACTIVATE, (hwnd == GetForegroundWindow()), (LPARAM)previous );
SendMessageW( hwnd, WM_ACTIVATE,
MAKEWPARAM( mouse ? WA_CLICKACTIVE : WA_ACTIVE, IsIconic(hwnd) ),
(LPARAM)previous );
More information about the wine-patches
mailing list