mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WIN32SS] Exclude the entire menu from overlapping, not just the menu item
CORE-15863
This commit is contained in:
parent
7c45a646e9
commit
b5c6af459c
1 changed files with 4 additions and 5 deletions
|
@ -3362,12 +3362,11 @@ static PMENU FASTCALL MENU_ShowSubPopup(PWND WndOwner, PMENU Menu, BOOL SelectFi
|
||||||
|
|
||||||
pWnd = ValidateHwndNoErr(Menu->hWnd);
|
pWnd = ValidateHwndNoErr(Menu->hWnd);
|
||||||
|
|
||||||
ParentRect = Rect;
|
/* Grab the rect of our (entire) parent menu, so we can try to not overlap it */
|
||||||
if (pWnd)
|
if (!IntGetWindowRect(pWnd, &ParentRect))
|
||||||
{
|
{
|
||||||
POINT pt = {0, 0};
|
ERR("No pWnd\n");
|
||||||
IntClientToScreen(pWnd, &pt);
|
ParentRect = Rect;
|
||||||
RECTL_vOffsetRect(&ParentRect, pt.x, pt.y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* correct item if modified as a reaction to WM_INITMENUPOPUP message */
|
/* correct item if modified as a reaction to WM_INITMENUPOPUP message */
|
||||||
|
|
Loading…
Reference in a new issue