Ignore:
Timestamp:
Nov 1, 1999, 8:11:46 PM (26 years ago)
Author:
sandervl
Message:

Activate + group box fixes + cleanup changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmframe.cpp

    r1530 r1540  
    1 /* $Id: pmframe.cpp,v 1.15 1999-10-31 17:53:51 cbratschi Exp $ */
     1/* $Id: pmframe.cpp,v 1.16 1999-11-01 19:11:41 sandervl Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    232232  switch(msg)
    233233  {
    234 #if 1
    235234    case WM_ADJUSTWINDOWPOS:
    236235    {
     
    390389        return rc;
    391390    }
    392 #if 0
    393     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 
    403391    case WM_ACTIVATE:
    404392    {
    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 window
    411                 //set to NULL (allowed according to win32 SDK) to avoid problems
    412                 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 #else
    427     case WM_ACTIVATE:
    428       {
    429393        HWND hwndTitle;
    430394        USHORT flags = WinQueryWindowUShort(hwnd,QWS_FLAGS);
     
    440404        RestoreOS2TIB();
    441405        return 0;
    442       }
    443 
    444 #endif
    445 #else
    446     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 0
    455        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 #endif
    462         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;
    467406    }
    468 
    469     case WM_ACTIVATE:
    470         DrawActivate(win32wnd, hwnd);
    471         goto RunDefFrameProc;
    472 #endif
    473407
    474408    case WM_DESTROY:
Note: See TracChangeset for help on using the changeset viewer.