Changeset 1540 for trunk/src/user32/pmframe.cpp
- Timestamp:
- Nov 1, 1999, 8:11:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmframe.cpp
r1530 r1540 1 /* $Id: pmframe.cpp,v 1.1 5 1999-10-31 17:53:51 cbratschiExp $ */1 /* $Id: pmframe.cpp,v 1.16 1999-11-01 19:11:41 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 232 232 switch(msg) 233 233 { 234 #if 1235 234 case WM_ADJUSTWINDOWPOS: 236 235 { … … 390 389 return rc; 391 390 } 392 #if 0393 case WM_ENABLE:394 dprintf(("PMFRAME: WM_ENABLE %x", win32wnd->getWindowHandle()));395 win32wnd->MsgEnable(SHORT1FROMMP(mp1));396 goto RunDefFrameProc;397 398 case WM_SHOW:399 dprintf(("PMFRAME: WM_SHOW %x %d", win32wnd->getWindowHandle(), mp1));400 win32wnd->MsgShow((ULONG)mp1);401 goto RunDefFrameProc;402 403 391 case WM_ACTIVATE: 404 392 { 405 HWND hwndActivate = (HWND)mp2;406 BOOL fMinimized = FALSE;407 408 dprintf(("PMFRAME: WM_ACTIVATE %x %x", hwnd, hwndActivate));409 if(WinQueryWindowULong(hwndActivate, OFFSET_WIN32PM_MAGIC) != WIN32PM_MAGIC) {410 //another (non-win32) application's window411 //set to NULL (allowed according to win32 SDK) to avoid problems412 hwndActivate = NULL;413 }414 if(WinQueryWindowULong(hwnd, QWL_STYLE) & WS_MINIMIZED)415 {416 fMinimized = TRUE;417 }418 419 win32wnd->MsgActivate(SHORT1FROMMP(mp1), fMinimized, Win32BaseWindow::OS2ToWin32Handle(hwndActivate));420 421 RestoreOS2TIB();422 MRESULT rc = OldFrameProc(hwnd,msg,mp1,mp2);423 DrawActivate(win32wnd, hwnd);424 return rc;425 }426 #else427 case WM_ACTIVATE:428 {429 393 HWND hwndTitle; 430 394 USHORT flags = WinQueryWindowUShort(hwnd,QWS_FLAGS); … … 440 404 RestoreOS2TIB(); 441 405 return 0; 442 }443 444 #endif445 #else446 case WM_ADJUSTWINDOWPOS:447 {448 PSWP pswp = (PSWP)mp1;449 Win32BaseWindow *wndchild;450 451 wndchild = Win32BaseWindow::GetWindowFromOS2FrameHandle(pswp->hwnd);452 if(wndchild && wndchild->isChild())453 {454 #if 0455 SWP swp = *pswp;456 457 MRESULT rc = OldFrameProc(hwnd, msg, mp1, mp2);458 pswp->x = swp.x;459 pswp->y = swp.y;460 pswp->fl = swp.fl;461 #endif462 dprintf(("PMFRAME: WM_ADJUSTWINDOWPOS %x %x %x (%d,%d) (%d,%d)", hwnd, pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));463 RestoreOS2TIB();464 return (MRESULT)0;465 }466 goto RunDefFrameProc;467 406 } 468 469 case WM_ACTIVATE:470 DrawActivate(win32wnd, hwnd);471 goto RunDefFrameProc;472 #endif473 407 474 408 case WM_DESTROY:
Note:
See TracChangeset
for help on using the changeset viewer.