mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 23:55:07 +00:00
fixed behaviour of sizing grip (2)
svn path=/trunk/; revision=8127
This commit is contained in:
parent
db915d211a
commit
98531c0d4d
|
@ -61,8 +61,8 @@ Already defined in makefile now.
|
||||||
(((Style) & (WS_BORDER | WS_MINIMIZE)) || (!((Style) & (WS_CHILD | WS_POPUP))))
|
(((Style) & (WS_BORDER | WS_MINIMIZE)) || (!((Style) & (WS_CHILD | WS_POPUP))))
|
||||||
|
|
||||||
#define HASSIZEGRIP(Style, ExStyle, ParentStyle, WindowRect, ParentClientRect) \
|
#define HASSIZEGRIP(Style, ExStyle, ParentStyle, WindowRect, ParentClientRect) \
|
||||||
(!(Style & WS_CHILD) || (ExStyle & WS_EX_MDICHILD) || \
|
((!(Style & WS_CHILD) && (Style & WS_THICKFRAME) && !(Style & WS_MAXIMIZE)) || \
|
||||||
((Style & WS_CHILD) && !(ParentStyle & WS_MAXIMIZE) && \
|
((Style & WS_CHILD) && (ParentStyle & WS_THICKFRAME) && !(ParentStyle & WS_MAXIMIZE) && \
|
||||||
(WindowRect.right - WindowRect.left == ParentClientRect.right) && \
|
(WindowRect.right - WindowRect.left == ParentClientRect.right) && \
|
||||||
(WindowRect.bottom - WindowRect.top == ParentClientRect.bottom)))
|
(WindowRect.bottom - WindowRect.top == ParentClientRect.bottom)))
|
||||||
/*
|
/*
|
||||||
|
@ -459,10 +459,6 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn)
|
||||||
GetClientRect(Parent, &ParentClientRect);
|
GetClientRect(Parent, &ParentClientRect);
|
||||||
if (HASSIZEGRIP(Style, ExStyle, GetWindowLongW(Parent, GWL_STYLE), WindowRect, ParentClientRect))
|
if (HASSIZEGRIP(Style, ExStyle, GetWindowLongW(Parent, GWL_STYLE), WindowRect, ParentClientRect))
|
||||||
{
|
{
|
||||||
TempRect.top--;
|
|
||||||
TempRect.bottom++;
|
|
||||||
TempRect.left--;
|
|
||||||
TempRect.right++;
|
|
||||||
DrawFrameControl(hDC, &TempRect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP);
|
DrawFrameControl(hDC, &TempRect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP);
|
||||||
}
|
}
|
||||||
IntDrawScrollBar(hWnd, hDC, SB_VERT);
|
IntDrawScrollBar(hWnd, hDC, SB_VERT);
|
||||||
|
|
Loading…
Reference in a new issue