Ignore:
Timestamp:
May 2, 2003, 7:18:57 PM (22 years ago)
Author:
sandervl
Message:

PF: WM_PARENTNOTIFY bugfix; minimize & titlebar (de)activation corrections

File:
1 edited

Legend:

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

    r10060 r10061  
    1 /* $Id: pmwindow.cpp,v 1.213 2003-05-02 15:33:15 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.214 2003-05-02 17:18:55 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    13351335            dprintf(("WARNING: WM_ADJUSTWINDOWPOS with SWP_NOADJUST flag!!"));
    13361336            break;
    1337         }
     1337
     1338        }
     1339     
     1340        //PF Pure flags should not cause any subsequent messages to win32 windows
     1341        //we should route them to DefFrameWndProc and check highlight.
     1342 
    13381343        if ((pswp->fl == SWP_FOCUSACTIVATE) || (pswp->fl == SWP_FOCUSDEACTIVATE))
    13391344        {
    1340            dprintf(("Pure focus flags are not sent to win32 windows"));
     1345           if (fOS2Look)
     1346           {
     1347             if(pswp->fl == SWP_FOCUSACTIVATE)
     1348             {
     1349                 dprintf2(("TBM_QUERYHILITE returned %d", WinSendDlgItemMsg(hwnd, FID_TITLEBAR, TBM_QUERYHILITE, 0, 0)));
     1350                 WinSendDlgItemMsg(hwnd, FID_TITLEBAR, TBM_SETHILITE, (MPARAM)1, 0);
     1351             }
     1352             else
     1353             {
     1354                 dprintf2(("TBM_QUERYHILITE returned %d", WinSendDlgItemMsg(hwnd, FID_TITLEBAR, TBM_QUERYHILITE, 0, 0)));
     1355                 WinSendDlgItemMsg(hwnd, FID_TITLEBAR, TBM_SETHILITE, 0, 0);
     1356             }
     1357           }
    13411358           goto RunDefFrameWndProc;
    13421359        }
     
    17121729              goto RunDefFrameWndProc;
    17131730
     1731        //PF This is the final step of PM minimization - shoukd end up
     1732        //in default handler
     1733        if (win32wnd->getStyle() & WS_MINIMIZE_W && pswp->fl & SWP_MINIMIZE)
     1734              goto RunDefFrameWndProc;
     1735
    17141736PosChangedEnd:
    17151737        rc = (MRESULT)FALSE;
Note: See TracChangeset for help on using the changeset viewer.