https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b9ddad0bbb2cf7f9501b4…
commit b9ddad0bbb2cf7f9501b401d84b6847f695b1ddf
Author: Waritnan Sookbuntherng <lion328(a)hotmail.co.th>
AuthorDate: Tue Dec 11 22:22:47 2018 +0700
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Fri Aug 16 16:22:24 2019 +0200
[COMCTL32] Hide size grip when the parent window is maximized
---
dll/win32/comctl32/status.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dll/win32/comctl32/status.c b/dll/win32/comctl32/status.c
index 26e9d3a1c6f..dd39f13f082 100644
--- a/dll/win32/comctl32/status.c
+++ b/dll/win32/comctl32/status.c
@@ -298,7 +298,8 @@ STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
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);
return 0;
@@ -1011,7 +1012,8 @@ STATUSBAR_WMGetText (const STATUS_INFO *infoPtr, INT size, LPWSTR
buf)
static BOOL
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;
POINT pt;