From c0e10d2b9704387e1fafb4195ff8158211ae499b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 28 Feb 2008 16:17:08 +0100 Subject: [PATCH] user32: Hide the icon title when hiding a window. --- dlls/user32/winpos.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index cc6309ade0e..c60e75d48c8 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. -- 2.11.4.GIT