don't draw menu bar and scrollbars when minimized

svn path=/trunk/; revision=7274
This commit is contained in:
Thomas Bluemel 2003-12-27 23:51:05 +00:00
parent cda2695c4c
commit 7ec1d6fece

View file

@ -394,7 +394,8 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn)
UserDrawCaptionButton(&TempRect, Style, ExStyle, hDC, FALSE, DFCS_CAPTIONMAX);
}
}
if(!(Style & WS_MINIMIZE))
{
/* Line under caption */
PreviousPen = SelectObject(hDC, GetSysColorPen(
((ExStyle & (WS_EX_STATICEDGE | WS_EX_CLIENTEDGE |
@ -404,7 +405,10 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn)
LineTo(hDC, TempRect.right, TempRect.bottom);
SelectObject(hDC, PreviousPen);
}
}
if(!(Style & WS_MINIMIZE))
{
/* Draw menu bar */
if (UserHasMenu(hWnd, Style))
{
@ -448,6 +452,7 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn)
else if (Style & WS_HSCROLL)
IntDrawScrollBar(hWnd, hDC, SB_HORZ);
}
}
ReleaseDC(hWnd, hDC);