Changeset 4558 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Nov 5, 2000, 7:49:09 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r4524 r4558 1 /* $Id: win32wbase.cpp,v 1.22 0 2000-10-23 18:28:53sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.221 2000-11-05 18:49:07 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 95 95 fParentDC = FALSE; 96 96 fComingToTop = FALSE; 97 fCreateSetWindowPos = FALSE; 97 98 98 99 windowNameA = NULL; … … 639 640 } 640 641 641 // preset rects642 //set client & window rectangles from CreateWindowEx CREATESTRUCT 642 643 rectWindow.left = cs->x; 643 644 rectWindow.right = cs->x+cs->cx; 644 645 rectWindow.top = cs->y; 645 646 rectWindow.bottom = cs->y+cs->cy; 646 rectClient = rectWindow; //dummy client rect647 rectClient = rectWindow; 647 648 OffsetRect(&rectClient, -rectClient.left, -rectClient.top); 648 649 … … 673 674 fCXDefault = FALSE; 674 675 cs->cx = cs->cy = 0; 676 rectWindow.right = rectWindow.left; 677 rectWindow.bottom = rectWindow.top; 675 678 } 676 679 } 677 //update rect678 rectWindow.left = cs->x;679 rectWindow.right = cs->x+cs->cx;680 rectWindow.top = cs->y;681 rectWindow.bottom = cs->y+cs->cy;682 680 tmpRect = rectWindow; 683 681 684 rectClient = rectWindow; 685 OffsetRect(&rectClient, -rectClient.left, -rectClient.top); 686 OffsetRect(&rectWindow, maxPos.x - rectWindow.left, maxPos.y - rectWindow.top); 682 fCreateSetWindowPos = TRUE; 687 683 688 684 //set the window size and update the client … … 2266 2262 } 2267 2263 #endif 2264 2265 if(!fCreateSetWindowPos) 2266 {//don't change size; modify internal structures only 2267 //TODO: not 100% correct yet (activate) 2268 if(!(fuFlags & SWP_NOZORDER)) { 2269 hwndLinkAfter = hwndInsertAfter; 2270 } 2271 if(!(fuFlags & SWP_NOMOVE)) { 2272 rectWindow.bottom = (rectWindow.bottom - rectWindow.top) + y; 2273 rectWindow.top = y; 2274 rectWindow.right = (rectWindow.right - rectWindow.left) + x; 2275 rectWindow.left = x; 2276 } 2277 if(!(fuFlags & SWP_NOSIZE)) { 2278 rectWindow.bottom = rectWindow.top + cy; 2279 rectWindow.right = rectWindow.left + cx; 2280 } 2281 return TRUE; 2282 } 2268 2283 2269 2284 WINDOWPOS wpos;
Note:
See TracChangeset
for help on using the changeset viewer.