Use GetAncestor instead of GetParent.
This commit is contained in:
parent
1283bd9354
commit
7b5f5f1cff
|
@ -744,7 +744,7 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
|
|||
if ((style & WS_CAPTION) == WS_CAPTION)
|
||||
style &= ~WS_BORDER; /* WS_CAPTION = WS_DLGFRAME | WS_BORDER */
|
||||
|
||||
GetClientRect(GetParent(hwnd), &rc);
|
||||
GetClientRect(GetAncestor(hwnd,GA_PARENT), &rc);
|
||||
AdjustWindowRectEx(&rc, style, 0, exstyle);
|
||||
|
||||
/* avoid calculating this twice */
|
||||
|
|
Loading…
Reference in New Issue