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/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.