mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 01:43:02 +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);
|
UserDrawCaptionButton(&TempRect, Style, ExStyle, hDC, FALSE, DFCS_CAPTIONMAX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(!(Style & WS_MINIMIZE))
|
||||||
|
{
|
||||||
/* Line under caption */
|
/* Line under caption */
|
||||||
PreviousPen = SelectObject(hDC, GetSysColorPen(
|
PreviousPen = SelectObject(hDC, GetSysColorPen(
|
||||||
((ExStyle & (WS_EX_STATICEDGE | WS_EX_CLIENTEDGE |
|
((ExStyle & (WS_EX_STATICEDGE | WS_EX_CLIENTEDGE |
|
||||||
|
@ -404,7 +405,10 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn)
|
||||||
LineTo(hDC, TempRect.right, TempRect.bottom);
|
LineTo(hDC, TempRect.right, TempRect.bottom);
|
||||||
SelectObject(hDC, PreviousPen);
|
SelectObject(hDC, PreviousPen);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!(Style & WS_MINIMIZE))
|
||||||
|
{
|
||||||
/* Draw menu bar */
|
/* Draw menu bar */
|
||||||
if (UserHasMenu(hWnd, Style))
|
if (UserHasMenu(hWnd, Style))
|
||||||
{
|
{
|
||||||
|
@ -448,6 +452,7 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn)
|
||||||
else if (Style & WS_HSCROLL)
|
else if (Style & WS_HSCROLL)
|
||||||
IntDrawScrollBar(hWnd, hDC, SB_HORZ);
|
IntDrawScrollBar(hWnd, hDC, SB_HORZ);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ReleaseDC(hWnd, hDC);
|
ReleaseDC(hWnd, hDC);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue