Module: wine Branch: master Commit: c0e10d2b9704387e1fafb4195ff8158211ae499b URL: http://source.winehq.org/git/wine.git/?a=commit;h=c0e10d2b9704387e1fafb4195f...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Feb 28 16:17:08 2008 +0100
user32: Hide the icon title when hiding a window.
---
dlls/user32/winpos.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index cc6309a..c60e75d 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -721,10 +721,9 @@ BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
TRACE("%p %i\n", hwnd, (bShow != 0) );
- if( !title ) - lpPos->hwndIconTitle = title = ICONTITLE_Create( hwnd ); if( bShow ) { + if (!title) lpPos->hwndIconTitle = title = ICONTITLE_Create( hwnd ); if (!IsWindowVisible(title)) { SendMessageW( title, WM_SHOWWINDOW, TRUE, 0 ); @@ -732,7 +731,7 @@ BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow ) SWP_NOACTIVATE | SWP_NOZORDER | SWP_SHOWWINDOW ); } } - else ShowWindow( title, SW_HIDE ); + else if (title) ShowWindow( title, SW_HIDE ); } return FALSE; } @@ -1130,6 +1129,8 @@ static BOOL show_window( HWND hwnd, INT cmd ) { HWND hFocus;
+ WINPOS_ShowIconTitle( hwnd, FALSE ); + /* FIXME: This will cause the window to be activated irrespective * of whether it is owned by the same thread. Has to be done * asynchronously.