Use GetAncestor instead of GetParent.

This commit is contained in:
Ulrich Czekalla 2005-03-22 18:17:56 +00:00 committed by Alexandre Julliard
parent 1283bd9354
commit 7b5f5f1cff

View File

@ -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 */