Ignore:
Timestamp:
Dec 17, 1999, 6:18:04 PM (26 years ago)
Author:
cbratschi
Message:

MDI cascade/tile, WM_PARENTNOTIFY cursor pos mapping, free timers after WM_DESTROY

File:
1 edited

Legend:

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

    r2089 r2099  
    1 /* $Id: win32wbase.cpp,v 1.112 1999-12-16 00:47:21 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.113 1999-12-17 17:18:03 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    4242#include "winmouse.h"
    4343#include <win\hook.h>
     44#define INCL_TIMERWIN32
     45#include "timer.h"
    4446
    4547#define HAS_DLGFRAME(style,exStyle) \
     
    807809    SendInternalMessageA(WM_DESTROY, 0, 0);
    808810    if(::IsWindow(hwnd) == FALSE) {
    809         //object already destroyed, so return immediately
    810         return 1;
     811        //object already destroyed, so return immediately
     812        return 1;
    811813    }
    812814    SendInternalMessageA(WM_NCDESTROY, 0, 0);
     
    814816    if (hwndHorzScroll && OSLibWinQueryWindow(hwndHorzScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow()) OSLibWinDestroyWindow(hwndHorzScroll);
    815817    if (hwndVertScroll && OSLibWinQueryWindow(hwndVertScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow()) OSLibWinDestroyWindow(hwndVertScroll);
     818
     819    TIMER_KillTimerFromWindow(OS2Hwnd);
    816820
    817821    if(getFirstChild() == NULL) {
     
    19891993        case WM_MBUTTONDOWN:
    19901994        case WM_RBUTTONDOWN:
    1991                 NotifyParent(Msg, wParam, lParam);
     1995        {
     1996                if (getParent())
     1997                {
     1998                  POINTS pt = MAKEPOINTS(lParam);
     1999                  POINT point;
     2000
     2001                  point.x = pt.x;
     2002                  point.y = pt.y;
     2003                  MapWindowPoints(getParent()->getWindowHandle(),Win32Hwnd,&point,1);
     2004                  NotifyParent(Msg,wParam,MAKELPARAM(point.x,point.y));
     2005                }
    19922006                rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam);
    19932007                break;
     2008        }
    19942009
    19952010        case WM_DESTROY:
Note: See TracChangeset for help on using the changeset viewer.