- if (window->Parent == NULL)\r
- /* get the window rect from this to feed to SetWindowPos, correct for window decorations */\r
- fghComputeWindowRectFromClientArea_QueryWindow(window,&windowRect,TRUE);\r
- else\r
- {\r
- /* correct rect for position client area of parent window\r
- * (SetWindowPos input for child windows is in coordinates\r
- * relative to the parent's client area).\r
- * Child windows don't have decoration, so no need to correct\r
- * for them.\r
- */\r
- RECT parentRect;\r
- parentRect = fghGetClientArea( window->Parent, FALSE );\r
- windowRect.left -= parentRect.left;\r
- windowRect.right -= parentRect.left;\r
- windowRect.top -= parentRect.top;\r
- windowRect.bottom -= parentRect.top;\r
- }\r
- \r
- /* Do the actual resizing */\r
- SetWindowPos( window->Window.Handle,\r
- HWND_TOP,\r
- windowRect.left, windowRect.top,\r
- windowRect.right - windowRect.left,\r
- windowRect.bottom- windowRect.top,\r
- SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSENDCHANGING |\r
- SWP_NOZORDER\r
- );\r
- }\r
-#endif\r