Changeset 2483 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jan 20, 2000, 5:48:58 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r2469 r2483 1 /* $Id: win32wbase.cpp,v 1.14 2 2000-01-18 20:10:53 sandervlExp $ */1 /* $Id: win32wbase.cpp,v 1.143 2000-01-20 16:48:56 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1055 1055 //set new window rectangle 1056 1056 setWindowRect(lpWndPos->x, lpWndPos->y, lpWndPos->x + lpWndPos->cx, lpWndPos->y + lpWndPos->cy); 1057 if (getParent()) mapWin32Rect(getParent()->getOS2WindowHandle(),OSLIB_HWND_DESKTOP,&rectWindow); 1057 1058 newWindowRect= rectWindow; 1058 1059 } … … 1413 1414 DWORD lParam; 1414 1415 1415 if(getParent()) {//in parent coordinates 1416 POINT point; 1417 1418 point.x = rectClient.left; 1419 point.y = rectClient.top; 1420 ClientToScreen(getParent()->getWindowHandle(),&point); 1421 1422 lParam = MAKELONG(point.x, point.y); 1423 } 1424 else {//in screen coordinates 1425 lParam = MAKELONG(rectClient.left,rectClient.top); 1416 if (dwStyle & WS_CHILD) 1417 { 1418 lParam = MAKELONG(rectClient.left,rectClient.top); 1419 } else 1420 { 1421 POINT point; 1422 1423 point.x = rectClient.left; 1424 point.y = rectClient.top; 1425 if (getParent()) ClientToScreen(getParent()->getWindowHandle(),&point); 1426 1427 lParam = MAKELONG(point.x, point.y); 1426 1428 } 1427 1429 SendInternalMessageA(WM_MOVE, 0, lParam); … … 2046 2048 HWND hParent = 0; 2047 2049 2048 dprintf (("SetWindowPos %x %x (%d,%d)(%d,%d) %x", Win32Hwnd, hwndInsertAfter, x, y, cx, cy, fuFlags));2049 2050 2050 if (fuFlags & 2051 2051 ~(SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | … … 2064 2064 WINDOWPOS wpos; 2065 2065 SWP swp, swpOld; 2066 2067 #if 0 //CB: test: MSIE 2.0 displays the tool-/addressbar this way -> to check 2068 //CB: cx or cy are 0 2069 if (cx == 0) cx = 50; 2070 if (cy == 0) cy = 50; 2071 #endif 2066 2072 2067 2073 wpos.flags = fuFlags;
Note:
See TracChangeset
for help on using the changeset viewer.