- Timestamp:
- Feb 23, 2001, 3:52:42 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r5246 r5258 1 /* $Id: pmwindow.cpp,v 1.1 19 2001-02-22 18:18:59sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.120 2001-02-23 14:52:41 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 472 472 else redrawAll = TRUE; 473 473 474 if(win32wnd->IsMixMaxStateChanging()) { 475 dprintf(("WM_CALCVALIDRECT: window changed min/max/restore state, invalidate entire window")); 476 redrawAll = TRUE; 477 } 478 474 479 if (redrawAll) 475 480 { … … 581 586 SWP swpOld; 582 587 WINDOWPOS wp; 583 RECTL newClient rect, oldClientRect;588 RECTL newClientRect, oldClientRect; 584 589 ULONG nccalcret; 585 590 // UINT res = CVR_ALIGNLEFT | CVR_ALIGNTOP; … … 616 621 617 622 //Get new client rectangle 618 mapWin32ToOS2Rect(pswp->cy, win32wnd->getClientRectPtr(), (PRECTLOS2)&newClient rect);623 mapWin32ToOS2Rect(pswp->cy, win32wnd->getClientRectPtr(), (PRECTLOS2)&newClientRect); 619 624 620 625 if(nccalcret == 0) { … … 647 652 } 648 653 } 649 if(res != 0) { 650 654 if(win32wnd->IsMixMaxStateChanging()) { 655 dprintf(("WM_CALCVALIDRECT: window changed min/max/restore state, invalidate entire window")); 656 res |= CVR_REDRAW; 657 } 658 if(res == (CVR_ALIGNTOP|CVR_ALIGNLEFT)) { 659 oldRect->xRight -= oldClientRect.xLeft; 660 oldRect->yBottom += oldClientRect.yBottom; 661 newRect->xRight -= newClientRect.xLeft; 662 newRect->yBottom += newClientRect.yBottom; 651 663 } 652 664 -
trunk/src/user32/win32wbase.cpp
r5246 r5258 1 /* $Id: win32wbase.cpp,v 1.24 3 2001-02-22 18:18:59sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.244 2001-02-23 14:52:41 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 105 105 fCreateSetWindowPos = FALSE; 106 106 fCreationFinished= FALSE; 107 fMinMaxChange = FALSE; 107 108 108 109 windowNameA = NULL; … … 1489 1490 { 1490 1491 dprintf(("DefWndProc: WM_SETCURSOR for %x Msg %s", Win32Hwnd, GetMsgText(HIWORD(lParam)))); 1491 if((getStyle() & WS_CHILD) && !(getExStyle() & WS_EX_NOPARENTNOTIFY))1492 if((getStyle() & WS_CHILD)) 1492 1493 { 1493 1494 if(getParent()) { … … 1496 1497 } 1497 1498 } 1498 if (wParam == Win32Hwnd)1499 if (wParam == getWindowHandle()) 1499 1500 { 1500 1501 HCURSOR hCursor; … … 2210 2211 if( !(getStyle() & WS_MINIMIZE) ) { 2211 2212 swp |= MinMaximize(SW_MINIMIZE, &newPos ); 2213 fMinMaxChange = TRUE; //-> invalidate entire window in WM_CALCINVALIDRECT 2212 2214 } 2213 2215 else swp |= SWP_NOSIZE | SWP_NOMOVE; … … 2217 2219 case SW_SHOWMAXIMIZED: /* same as SW_MAXIMIZE */ 2218 2220 swp |= SWP_SHOWWINDOW | SWP_FRAMECHANGED; 2219 if( !(getStyle() & WS_MAXIMIZE) ) 2221 if( !(getStyle() & WS_MAXIMIZE) ) { 2220 2222 swp |= MinMaximize(SW_MAXIMIZE, &newPos ); 2223 fMinMaxChange = TRUE; //-> invalidate entire window in WM_CALCINVALIDRECT 2224 } 2221 2225 else swp |= SWP_NOSIZE | SWP_NOMOVE; 2222 2226 break; … … 2251 2255 if( getStyle() & (WS_MINIMIZE | WS_MAXIMIZE) ) { 2252 2256 swp |= MinMaximize(SW_RESTORE, &newPos ); 2257 fMinMaxChange = TRUE; //-> invalidate entire window in WM_CALCINVALIDRECT 2253 2258 } 2254 2259 else swp |= SWP_NOSIZE | SWP_NOMOVE; … … 2291 2296 } 2292 2297 END: 2298 fMinMaxChange = FALSE; 2293 2299 return wasVisible; 2294 2300 } -
trunk/src/user32/win32wbase.h
r5242 r5258 1 /* $Id: win32wbase.h,v 1.11 0 2001-02-22 10:37:31sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.111 2001-02-23 14:52:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 258 258 //Window procedure type 259 259 BOOL IsWindowUnicode(); 260 BOOL IsMixMaxStateChanging() { return fMinMaxChange; }; 260 261 261 262 int GetWindowTextLength(); … … 333 334 HMENU hSysMenu; 334 335 HWND Win32Hwnd; 335 BOOL isUnicode;336 336 337 337 int posx, posy, width, height; … … 353 353 LONG lastHitTestVal; //Last value returned by WM_NCHITTEST handler 354 354 355 BOOL fFirstShow;356 BOOL fIsDialog;357 BOOL fIsModalDialog;358 BOOL fIsModalDialogOwner;359 355 HWND OS2HwndModalDialog; 360 BOOL fInternalMsg; //Used to distinguish between messages 361 //sent by PM and those sent by apps 362 BOOL fNoSizeMsg; 363 BOOL fIsDestroyed; 364 BOOL fDestroyWindowCalled; //DestroyWindow was called for this window 365 BOOL fCreated; 366 BOOL fCreationFinished; //True when window or dialog has been created successfully 367 //Needed to prevent DestroyWindow from deleting the window 368 //object during construction 369 BOOL fTaskList; //should be listed in PM tasklist or not 370 BOOL fXDefault; 371 BOOL fCXDefault; 372 BOOL fParentDC; 373 BOOL fComingToTop; 374 BOOL fCreateSetWindowPos; //FALSE -> SetWindowPos in Win32BaseWindow::MsgCreate not yet called 356 357 unsigned fFirstShow:1; 358 unsigned fIsDialog:1; 359 unsigned fIsModalDialog:1; 360 unsigned fIsModalDialogOwner:1; 361 unsigned fInternalMsg:1; //Used to distinguish between messages 362 //sent by PM and those sent by apps 363 unsigned fNoSizeMsg:1; 364 unsigned fIsDestroyed:1; 365 unsigned fDestroyWindowCalled:1; //DestroyWindow was called for this window 366 unsigned fCreated:1; 367 unsigned fCreationFinished:1; //True when window or dialog has been created successfully 368 //Needed to prevent DestroyWindow from deleting the window 369 //object during construction 370 unsigned fTaskList:1; //should be listed in PM tasklist or not 371 unsigned fXDefault:1; 372 unsigned fCXDefault:1; 373 unsigned fParentDC:1; 374 unsigned fComingToTop:1; 375 unsigned fCreateSetWindowPos:1; //FALSE -> SetWindowPos in Win32BaseWindow::MsgCreate not yet called 376 unsigned isUnicode:1; 377 unsigned fMinMaxChange:1; //set when switching between min/max/restored state 375 378 376 379 HRGN hWindowRegion; -
trunk/src/user32/win32wbasepos.cpp
r5246 r5258 1 /* $Id: win32wbasepos.cpp,v 1.2 1 2001-02-22 18:18:59sandervl Exp $ */1 /* $Id: win32wbasepos.cpp,v 1.22 2001-02-23 14:52:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (nonclient/position methods) … … 224 224 hwndParent = GetParent(hwnd); 225 225 if(hwndParent == 0) { 226 DebugInt3();226 dprintf(("WINPOS_FindIconPos: no parent found for window %x", hwnd)); 227 227 return; 228 228 } … … 269 269 if (!hwndChild) /* No window was found, so it's OK for us */ 270 270 { 271 272 273 274 } 275 271 pt.x = x + (xspacing - GetSystemMetrics(SM_CXICON)) / 2; 272 pt.y = y - (yspacing + GetSystemMetrics(SM_CYICON)) / 2; 273 return; 274 } 275 x += xspacing; 276 276 } while(x <= rectParent.right-xspacing); 277 277 -
trunk/src/user32/win32wmdiclient.cpp
r5217 r5258 1 /* $Id: win32wmdiclient.cpp,v 1.3 3 2001-02-20 17:22:06sandervl Exp $ */1 /* $Id: win32wmdiclient.cpp,v 1.34 2001-02-23 14:52:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 1329 1329 wndClass.cbClsExtra = 0; 1330 1330 wndClass.cbWndExtra = 0; 1331 wndClass.hCursor = 0;1331 wndClass.hCursor = LoadCursorA(0,IDC_ARROWA);; 1332 1332 wndClass.hbrBackground = (HBRUSH)GetStockObject(GRAY_BRUSH); 1333 1333 wndClass.lpszClassName = MDICLIENTCLASSNAMEA; -
trunk/src/user32/windlg.cpp
r5146 r5258 1 /* $Id: windlg.cpp,v 1.2 1 2001-02-17 14:49:26sandervl Exp $ */1 /* $Id: windlg.cpp,v 1.22 2001-02-23 14:52:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 dialog apis for OS/2 … … 695 695 strcpy( temp, "A:\\" ); 696 696 temp[0] += drive; 697 lstrcpynA( temp + 3, DRIVE_GetDosCwd(curpath, drive ), sizeof(temp)-3 );697 lstrcpynA( temp + 3, DRIVE_GetDosCwd(curpath, drive, sizeof(curpath)), sizeof(temp)-3 ); 698 698 CharLowerA( temp ); 699 699 /* Can't use PostMessage() here, because the string is on the stack */
Note:
See TracChangeset
for help on using the changeset viewer.