mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[COMCTL32] Hide size grip when the parent window is maximized
This commit is contained in:
parent
af0d1d2f98
commit
b9ddad0bbb
|
@ -298,7 +298,8 @@ STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
|
||||||
|
|
||||||
SelectObject (hdc, hOldFont);
|
SelectObject (hdc, hOldFont);
|
||||||
|
|
||||||
if (GetWindowLongW (infoPtr->Self, GWL_STYLE) & SBARS_SIZEGRIP)
|
if ((GetWindowLongW (infoPtr->Self, GWL_STYLE) & SBARS_SIZEGRIP)
|
||||||
|
&& !(GetWindowLongW (infoPtr->Notify, GWL_STYLE) & WS_MAXIMIZE))
|
||||||
STATUSBAR_DrawSizeGrip (theme, hdc, &rect);
|
STATUSBAR_DrawSizeGrip (theme, hdc, &rect);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1011,7 +1012,8 @@ STATUSBAR_WMGetText (const STATUS_INFO *infoPtr, INT size, LPWSTR buf)
|
||||||
static BOOL
|
static BOOL
|
||||||
STATUSBAR_WMNCHitTest (const STATUS_INFO *infoPtr, INT x, INT y)
|
STATUSBAR_WMNCHitTest (const STATUS_INFO *infoPtr, INT x, INT y)
|
||||||
{
|
{
|
||||||
if (GetWindowLongW (infoPtr->Self, GWL_STYLE) & SBARS_SIZEGRIP) {
|
if ((GetWindowLongW (infoPtr->Self, GWL_STYLE) & SBARS_SIZEGRIP)
|
||||||
|
&& !(GetWindowLongW (infoPtr->Notify, GWL_STYLE) & WS_MAXIMIZE)) {
|
||||||
RECT rect;
|
RECT rect;
|
||||||
POINT pt;
|
POINT pt;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue