Ignore:
Timestamp:
Oct 22, 2000, 6:07:48 PM (25 years ago)
Author:
sandervl
Message:

missing OBM_TNTYPE + fix for messages sent to windows after they received WM_DESTROY & WM_NCDESTORY

File:
1 edited

Legend:

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

    r4497 r4515  
    1 /* $Id: win32wbase.cpp,v 1.218 2000-10-18 17:10:49 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.219 2000-10-22 16:07:48 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    169169{
    170170    if(hTaskList) {
    171     OSLibWinRemoveFromTasklist(hTaskList);
     171        OSLibWinRemoveFromTasklist(hTaskList);
    172172    }
    173173
     
    668668        if (cs->style & (WS_POPUP | WS_CHILD))
    669669        {
    670           fXDefault = FALSE;
    671           if (fCXDefault)
    672           {
    673             fCXDefault = FALSE;
    674             cs->cx = cs->cy = 0;
    675           }
     670            fXDefault = FALSE;
     671            if (fCXDefault)
     672            {
     673                fCXDefault = FALSE;
     674                cs->cx = cs->cy = 0;
     675            }
    676676        }
    677677        //update rect
     
    706706                {
    707707                    getParent()->SendInternalMessageA(WM_PARENTNOTIFY, MAKEWPARAM(WM_CREATE, getWindowId()), (LPARAM)getWindowHandle());
    708         }
     708                }
    709709                if(!::IsWindow(getWindowHandle()))
    710710                {
     
    715715
    716716            if(cs->style & WS_VISIBLE) {
    717         dwStyle &= ~WS_VISIBLE;
    718         ShowWindow(sw);
     717                dwStyle &= ~WS_VISIBLE;
     718                ShowWindow(sw);
    719719            }
    720720
     
    778778    if(getFirstChild() == NULL) {
    779779        delete this;
     780    }
     781    else {
     782        //make sure no message can ever arrive for this window again (PM or from other win32 windows)
     783        OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, 0);
     784        OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_MAGIC, 0);
     785        if(Win32Hwnd) {
     786            HwFreeWindowHandle(Win32Hwnd);
     787            Win32Hwnd = 0;
     788        }
    780789    }
    781790    return 1;
Note: See TracChangeset for help on using the changeset viewer.