Changeset 2458 for trunk/src/user32/new/pmframe.cpp
- Timestamp:
- Jan 16, 2000, 7:17:13 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/pmframe.cpp
r2435 r2458 1 /* $Id: pmframe.cpp,v 1.1 7 2000-01-14 13:16:57 sandervlExp $ */1 /* $Id: pmframe.cpp,v 1.18 2000-01-16 18:17:11 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 118 118 { 119 119 win32wnd->setStyle((win32wnd->getStyle() & ~WS_MINIMIZE_W) | WS_MAXIMIZE_W); 120 121 RECT rect; 122 123 rect.left = rect.top = rect.right = rect.bottom = 0; 124 win32wnd->AdjustMaximizedRect(&rect); 125 swp->x += rect.left; 126 swp->cx += rect.right-rect.left; 127 swp->y -= rect.bottom; 128 swp->cy += rect.bottom-rect.top; 120 129 } 121 130 else if ((swp->fl & SWP_MINIMIZE) == SWP_MINIMIZE) … … 131 140 132 141 case WM_QUERYBORDERSIZE: 133 goto RunDefFrameProc; 142 { 143 PWPOINT size = (PWPOINT)mp1; 144 145 size->x = 0; 146 size->y = 0; 147 RestoreOS2TIB(); 148 return (MRESULT)TRUE; 149 } 134 150 135 151 case WM_BUTTON1DOWN: … … 212 228 if(!win32wnd->CanReceiveSizeMsgs()) 213 229 break; 214 //CB: todo: adjust maximized window rect (how does WINE it?) 230 215 231 WinQueryWindowPos(hwnd, &swpOld); 216 232 if(pswp->fl & (SWP_MOVE | SWP_SIZE)) { … … 263 279 if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0) 264 280 { 265 281 goto RunDefFrameProc; 266 282 } 267 283 … … 276 292 OSLibMapSWPtoWINDOWPOSFrame(pswp, &wp, &swpOld, hParent, hwnd); 277 293 278 279 294 if(pswp->fl & SWP_ACTIVATE) 295 { 280 296 WinSendMsg(hwnd, WM_ACTIVATE, (MPARAM)TRUE, (MPARAM)hwnd); 281 282 283 if( pswp->fl & (SWP_MOVE | SWP_SIZE))284 { 285 297 } 298 299 if((pswp->fl & (SWP_MOVE | SWP_SIZE)) && !(win32wnd->getStyle() & WS_MINIMIZE_W)) 300 { 301 //Note: Also updates the new window rectangle 286 302 win32wnd->MsgFormatFrame(&wp); 287 303 … … 325 341 { 326 342 WinInvalidateRect(hwnd,NULL,TRUE); 327 } 343 } 328 344 else 329 345 { … … 360 376 } 361 377 } 362 } 378 } 363 379 else 364 380 { … … 378 394 379 395 case WM_ERASEBACKGROUND: 380 396 break; 381 397 382 398 case WM_CALCVALIDRECTS: … … 453 469 SWP swpClient = {0}; 454 470 455 471 rectOld = *win32wnd->getClientRectPtr(); 456 472 win32wnd->MsgFormatFrame(NULL); 457 473 rectNew = *win32wnd->getClientRectPtr(); 458 474 if(WinEqualRect(0, (PRECTL)&rectOld, (PRECTL)&rectNew) == 1) { 459 460 461 } 475 WinInvalidateRect(win32wnd->getOS2FrameWindowHandle(), NULL, FALSE); 476 return; 477 } 462 478 //CB: todo: use result for WM_CALCVALIDRECTS 463 479 mapWin32ToOS2Rect(win32wnd->getOS2FrameWindowHandle(), win32wnd->getClientRectPtr(), (PRECTLOS2)&rect);
Note:
See TracChangeset
for help on using the changeset viewer.