Changeset 10061 for trunk/src


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

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

Location:
trunk/src/user32
Files:
2 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;
  • trunk/src/user32/win32wbase.cpp

    r10060 r10061  
    1 /* $Id: win32wbase.cpp,v 1.370 2003-05-02 15:33:16 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.371 2003-05-02 17:18:57 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    11791179        {
    11801180                if (getParent())
    1181                 {
    1182                     POINTS pt = MAKEPOINTS(msg->lParam);
    1183                     POINT point;
    1184 
    1185                     point.x = pt.x;
    1186                     point.y = pt.y;
    1187                     MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), &point, 1);
    1188                     NotifyParent(msg->message, msg->wParam, MAKELPARAM(point.x,point.y));
    1189                 }
     1181                    NotifyParent(msg->message, msg->wParam, 0);
    11901182                break;
    11911183        }
     
    23072299                parentwindow = window->getParent();
    23082300                if(parentwindow) {
     2301                    /* PF We should map points for each window accordingly! */
     2302                    if (Msg == WM_LBUTTONDOWN || Msg == WM_MBUTTONDOWN || Msg == WM_RBUTTONDOWN)
     2303                    {
     2304                      POINTS pt = MAKEPOINTS(lParam);
     2305                      POINT point;
     2306
     2307                      point.x = pt.x;
     2308                      point.y = pt.y;
     2309
     2310                      MapWindowPoints(getWindowHandle(),parentwindow->getWindowHandle(), &point, 1);
     2311                      lParam = MAKELPARAM(point.x, point.y);
     2312                    }
    23092313                    SendMessageA(parentwindow->getWindowHandle(), WM_PARENTNOTIFY, MAKEWPARAM(Msg, getWindowId()), lParam );
    23102314                }
     2315
    23112316        }
    23122317        else    break;
Note: See TracChangeset for help on using the changeset viewer.