mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 11:22:58 +00:00
don't draw menu bar and scrollbars when minimized
svn path=/trunk/; revision=7274
This commit is contained in:
parent
cda2695c4c
commit
7ec1d6fece
1 changed files with 54 additions and 49 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue