mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[NtUser]
- Fix : Allow controls to receive non-client messages. See CORE-12771. - See also https://bugs.winehq.org/show_bug.cgi?id=42503 . svn path=/trunk/; revision=73875
This commit is contained in:
parent
4bc269e94e
commit
9accb03ac7
2 changed files with 5 additions and 0 deletions
|
@ -1950,6 +1950,8 @@ GetNCHitEx(PWND pWnd, POINT pt)
|
|||
RECTL_vInflateRect(&rcWindow, -UserGetSystemMetrics(SM_CXDLGFRAME), -UserGetSystemMetrics(SM_CYDLGFRAME));
|
||||
else if (HAS_THINFRAME( Style, ExStyle ))
|
||||
RECTL_vInflateRect(&rcWindow, -UserGetSystemMetrics(SM_CXBORDER), -UserGetSystemMetrics(SM_CYBORDER));
|
||||
else if (HAS_CLIENTFRAME( Style, ExStyle ))
|
||||
RECTL_vInflateRect(&rcWindow, -UserGetSystemMetrics(SM_CXEDGE), -UserGetSystemMetrics(SM_CYEDGE));
|
||||
if (!RECTL_bPointInRect( &rcWindow, pt.x, pt.y )) return HTBORDER;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,9 @@ extern ATOM AtomFlashWndState;
|
|||
#define HAS_THINFRAME(Style, ExStyle) \
|
||||
(((Style) & WS_BORDER) || (!((Style) & (WS_CHILD | WS_POPUP))))
|
||||
|
||||
#define HAS_CLIENTFRAME(Style, ExStyle) \
|
||||
(((ExStyle) & WS_EX_CLIENTEDGE) || (!((Style) & (WS_CHILD | WS_POPUP))))
|
||||
|
||||
#define HAS_MENU(pWnd,style) ((((style) & (WS_CHILD | WS_POPUP)) != WS_CHILD) && (pWnd->IDMenu) && IntIsMenu(UlongToHandle(pWnd->IDMenu)))
|
||||
|
||||
#define IntIsDesktopWindow(WndObj) \
|
||||
|
|
Loading…
Reference in a new issue