Use GetAncestor instead of GetParent.

oldstable
Ulrich Czekalla 2005-03-22 18:17:56 +00:00 committed by Alexandre Julliard
parent 1283bd9354
commit 7b5f5f1cff
1 changed files with 1 additions and 1 deletions

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