Changeset 5685 for trunk/src/user32/window.cpp
- Timestamp:
- May 11, 2001, 10:39:46 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r5586 r5685 1 /* $Id: window.cpp,v 1.9 4 2001-04-25 20:53:39sandervl Exp $ */1 /* $Id: window.cpp,v 1.95 2001-05-11 08:39:46 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 404 404 405 405 if(hwnd == HWND_DESKTOP) { 406 window = windowDesktop;406 window = windowDesktop; 407 407 } 408 408 else { … … 412 412 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 413 413 return 0; 414 }414 } 415 415 } 416 416 hwndTop = window->GetTopWindow(); … … 947 947 if (!pRect) 948 948 { 949 SetLastError(ERROR_INVALID_PARAMETER);950 return FALSE;949 SetLastError(ERROR_INVALID_PARAMETER); 950 return FALSE; 951 951 } 952 952 window = Win32BaseWindow::GetWindowFromHandle(hwnd); … … 973 973 if(style == 0 && menu == FALSE && exStyle == 0) { 974 974 dprintf(("AdjustWindowRectEx %x %x %d (%d,%d)(%d,%d) -> no change required", style, exStyle, menu, rect->left, rect->top, rect->right, rect->bottom)); 975 return TRUE; //nothing needs to be changed (VERIFIED in NT 4)975 return TRUE; //nothing needs to be changed (VERIFIED in NT 4) 976 976 } 977 977 dprintf(("AdjustWindowRectEx %x %x %d (%d,%d)(%d,%d)\n", style, exStyle, menu, rect->left, rect->top, rect->right, rect->bottom)); … … 988 988 //Adjust rect outer (Win32BaseWindow::AdjustRectOuter) 989 989 if (HAS_THICKFRAME(style,exStyle)) 990 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) );990 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) ); 991 991 else 992 992 if (HAS_DLGFRAME(style,exStyle)) 993 993 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 994 995 996 994 else 995 if (HAS_THINFRAME(style)) 996 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 997 997 998 998 if ((style & WS_CAPTION) == WS_CAPTION) 999 999 { 1000 if (exStyle & WS_EX_TOOLWINDOW)1001 rect->top -= GetSystemMetrics(SM_CYSMCAPTION);1002 else1003 rect->top -= GetSystemMetrics(SM_CYCAPTION);1000 if (exStyle & WS_EX_TOOLWINDOW) 1001 rect->top -= GetSystemMetrics(SM_CYSMCAPTION); 1002 else 1003 rect->top -= GetSystemMetrics(SM_CYCAPTION); 1004 1004 } 1005 1005 1006 1006 if (menu) 1007 rect->top -= GetSystemMetrics(SM_CYMENU);1007 rect->top -= GetSystemMetrics(SM_CYMENU); 1008 1008 1009 1009 //Adjust rect inner (Win32BaseWindow::AdjustRectInner) 1010 1010 if(!(style & WS_ICONIC)) { 1011 if (exStyle & WS_EX_CLIENTEDGE)1011 if (exStyle & WS_EX_CLIENTEDGE) 1012 1012 InflateRect (rect, GetSystemMetrics(SM_CXEDGE), GetSystemMetrics(SM_CYEDGE)); 1013 1013 1014 if (exStyle & WS_EX_STATICEDGE)1014 if (exStyle & WS_EX_STATICEDGE) 1015 1015 InflateRect (rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 1016 1016 1017 //SvL: scrollbars aren't checked *UNLESS* the style includes a border (any border)1017 //SvL: scrollbars aren't checked *UNLESS* the style includes a border (any border) 1018 1018 // --> VERIFIED IN NT4, SP6 (fixes MFC apps with scrollbars + bar controls) 1019 if(style & (WS_THICKFRAME|WS_BORDER|WS_DLGFRAME)) {1019 if(style & (WS_THICKFRAME|WS_BORDER|WS_DLGFRAME)) { 1020 1020 if (style & WS_VSCROLL) rect->right += GetSystemMetrics(SM_CXVSCROLL); 1021 1021 if (style & WS_HSCROLL) rect->bottom += GetSystemMetrics(SM_CYHSCROLL); 1022 }1022 } 1023 1023 } 1024 1024 … … 1687 1687 return FALSE; 1688 1688 } 1689 dprintf(("USER32: ShowOwnedPopups %x %d", hwnd , fShow));1689 dprintf(("USER32: ShowOwnedPopups %x %d", hwndOwner, fShow)); 1690 1690 1691 1691 hwnd = GetWindow(GetDesktopWindow(), GW_CHILD);
Note:
See TracChangeset
for help on using the changeset viewer.