user32: Paint title bars for minimized windows.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
04707a342f
commit
3765b3307e
|
@ -430,8 +430,6 @@ static void NC_GetInsideRect( HWND hwnd, enum coords_relative relative, RECT *re
|
||||||
{
|
{
|
||||||
WIN_GetRectangles( hwnd, relative, rect, NULL );
|
WIN_GetRectangles( hwnd, relative, rect, NULL );
|
||||||
|
|
||||||
if (style & WS_MINIMIZE) return;
|
|
||||||
|
|
||||||
/* Remove frame from rectangle */
|
/* Remove frame from rectangle */
|
||||||
if (HAS_THICKFRAME( style, ex_style ))
|
if (HAS_THICKFRAME( style, ex_style ))
|
||||||
{
|
{
|
||||||
|
@ -955,9 +953,6 @@ static void NC_DoNCPaint( HWND hwnd, HRGN clip )
|
||||||
flags = wndPtr->flags;
|
flags = wndPtr->flags;
|
||||||
WIN_ReleasePtr( wndPtr );
|
WIN_ReleasePtr( wndPtr );
|
||||||
|
|
||||||
if ( dwStyle & WS_MINIMIZE ||
|
|
||||||
!WIN_IsWindowDrawable( hwnd, 0 )) return; /* Nothing to do */
|
|
||||||
|
|
||||||
active = flags & WIN_NCACTIVATED;
|
active = flags & WIN_NCACTIVATED;
|
||||||
|
|
||||||
TRACE("%p %d\n", hwnd, active );
|
TRACE("%p %d\n", hwnd, active );
|
||||||
|
@ -1065,9 +1060,6 @@ LRESULT NC_HandleNCPaint( HWND hwnd , HRGN clip)
|
||||||
|
|
||||||
if( dwStyle & WS_VISIBLE )
|
if( dwStyle & WS_VISIBLE )
|
||||||
{
|
{
|
||||||
if( dwStyle & WS_MINIMIZE )
|
|
||||||
WINPOS_RedrawIconTitle( hwnd );
|
|
||||||
else
|
|
||||||
NC_DoNCPaint( hwnd, clip );
|
NC_DoNCPaint( hwnd, clip );
|
||||||
|
|
||||||
if (parent == GetDesktopWindow())
|
if (parent == GetDesktopWindow())
|
||||||
|
@ -1097,9 +1089,6 @@ LRESULT NC_HandleNCActivate( HWND hwnd, WPARAM wParam, LPARAM lParam )
|
||||||
*/
|
*/
|
||||||
if (lParam != -1)
|
if (lParam != -1)
|
||||||
{
|
{
|
||||||
if (IsIconic(hwnd))
|
|
||||||
WINPOS_RedrawIconTitle( hwnd );
|
|
||||||
else
|
|
||||||
NC_DoNCPaint( hwnd, (HRGN)1 );
|
NC_DoNCPaint( hwnd, (HRGN)1 );
|
||||||
|
|
||||||
if (GetAncestor( hwnd, GA_PARENT ) == GetDesktopWindow())
|
if (GetAncestor( hwnd, GA_PARENT ) == GetDesktopWindow())
|
||||||
|
@ -1372,14 +1361,11 @@ LRESULT NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
|
||||||
}
|
}
|
||||||
|
|
||||||
case HTSYSMENU:
|
case HTSYSMENU:
|
||||||
if( style & WS_SYSMENU )
|
if (style & WS_SYSMENU)
|
||||||
{
|
{
|
||||||
if( !(style & WS_MINIMIZE) )
|
HDC hDC = GetWindowDC( hwnd );
|
||||||
{
|
|
||||||
HDC hDC = GetWindowDC(hwnd);
|
|
||||||
NC_DrawSysButton( hwnd, hDC, TRUE );
|
NC_DrawSysButton( hwnd, hDC, TRUE );
|
||||||
ReleaseDC( hwnd, hDC );
|
ReleaseDC( hwnd, hDC );
|
||||||
}
|
|
||||||
SendMessageW( hwnd, WM_SYSCOMMAND, SC_MOUSEMENU + HTSYSMENU, lParam );
|
SendMessageW( hwnd, WM_SYSCOMMAND, SC_MOUSEMENU + HTSYSMENU, lParam );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue