Changeset 1425 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Oct 24, 1999, 1:05:05 AM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32
-
Property svn:ignore
set to
user32.lrf
user32exp.def
resource.asm
-
Property svn:ignore
set to
-
trunk/src/user32/pmwindow.cpp
r1418 r1425 1 /* $Id: pmwindow.cpp,v 1.4 2 1999-10-23 16:45:20 cbratschiExp $ */1 /* $Id: pmwindow.cpp,v 1.43 1999-10-23 23:04:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 29 29 #include "oslibmsg.h" 30 30 #include "dc.h" 31 #include "timer.h"32 31 #include <thread.h> 33 32 #include <wprocess.h> 34 #include <caret.h> 33 #include "caret.h" 34 #include "timer.h" 35 35 36 36 HMQ hmq = 0; /* Message queue handle */ … … 248 248 break; 249 249 250 #if 1250 #if 0 251 251 case WM_ADJUSTWINDOWPOS: 252 252 { 253 253 PSWP pswp = (PSWP)mp1; 254 SWP swpOld ;254 SWP swpOld, swpNew; 255 255 WINDOWPOS wp; 256 256 ULONG parentHeight = 0; … … 291 291 dprintf(("OS2: WM_ADJUSTWINDOWPOS, app changed windowpos struct")); 292 292 dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy)); 293 OSLibMapWINDOWPOStoSWP(&wp, pswp, &swpOld, hParent, hFrame);294 dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));295 pswp->fl |= SWP_NOADJUST;296 pswp->hwndInsertBehind = hwndAfter;297 pswp->hwnd = hFrame;298 299 WinSetMultWindowPos(GetThreadHAB(), pswp, 1);293 OSLibMapWINDOWPOStoSWP(&wp, &swpNew, &swpOld, hParent, hFrame); 294 dprintf(("%x (%d,%d), (%d,%d)", swpNew.fl, swpNew.x, swpNew.y, swpNew.cx, swpNew.cy)); 295 swpNew.fl |= SWP_NOADJUST; 296 swpNew.hwndInsertBehind = hwndAfter; 297 swpNew.hwnd = hFrame; 298 299 WinSetMultWindowPos(GetThreadHAB(), &swpNew, 1); 300 300 return (MRESULT)0; 301 301 } 302 302 break; 303 303 } 304 #endif305 304 306 305 case WM_WINDOWPOSCHANGED: … … 316 315 317 316 if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0) break; 318 if (!win32wnd->CanReceiveSizeMsgs()) break;319 317 320 318 if(pswp->fl & (SWP_MOVE | SWP_SIZE)) { … … 326 324 } 327 325 } 328 OSLibMapSWPtoWINDOWPOS(pswp, &wp, &swpOld, hParent, hwnd); 326 OSLibMapSWPtoWINDOWPOS(pswp, &wp, &swpOld, hParent, win32wnd->getOS2FrameWindowHandle()); 327 328 if (!win32wnd->CanReceiveSizeMsgs()) break; 329 329 330 330 win32wnd->setWindowRect(wp.x, wp.y, wp.x+wp.cx, wp.y+wp.cy); … … 398 398 goto RunDefWndProc; 399 399 } 400 401 case WM_SIZE: 402 { 403 dprintf(("OS2: WM_SIZE (%d,%d) (%d,%d)", SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), SHORT1FROMMP(mp1), SHORT2FROMMP(mp2))); 404 break; 405 } 406 407 case WM_OWNERPOSCHANGE: 408 { 409 dprintf(("OS2: WM_OWNERPOSCHANGE")); 410 goto RunDefWndProc; 411 } 412 413 case WM_CALCVALIDRECTS: 414 { 415 dprintf(("OS2: WM_CALCVALIDRECTS")); 416 goto RunDefWndProc; 417 } 400 #endif 418 401 419 402 case WM_ACTIVATE: … … 438 421 break; 439 422 } 423 424 case WM_SIZE: 425 { 426 dprintf(("OS2: WM_SIZE (%d,%d) (%d,%d)", SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), SHORT1FROMMP(mp1), SHORT2FROMMP(mp2))); 427 break; 428 } 429 430 case WM_OWNERPOSCHANGE: 431 { 432 dprintf(("OS2: WM_OWNERPOSCHANGE")); 433 goto RunDefWndProc; 434 } 435 436 case WM_CALCVALIDRECTS: 437 { 438 dprintf(("OS2: WM_CALCVALIDRECTS")); 439 goto RunDefWndProc; 440 } 441 440 442 case WM_FOCUSCHANGE: 441 443 dprintf(("OS2: WM_FOCUSCHANGE %x", hwnd));
Note:
See TracChangeset
for help on using the changeset viewer.