Ignore:
Timestamp:
Aug 23, 2002, 5:06:01 PM (23 years ago)
Author:
sandervl
Message:

Ugly hack added to work around crash in PM when child window calls DestroyWindow for parent or owner in WM_DESTROY handler (solution: postpone DestroyWindow for parent/owner)

File:
1 edited

Legend:

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

    r8553 r9101  
    1 /* $Id: win32wbase.h,v 1.143 2002-06-02 19:34:36 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.144 2002-08-23 15:06:01 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    7373//NOTE Must be smaller than WIN32APP_POSTMSG!
    7474#define WIN32APP_SETFOCUSMSG      (WIN32APP_POSTMSG-1)
     75#define WIN32APP_POSTPONEDESTROY  (WIN32APP_POSTMSG-2)
    7576
    7677#define WIN32MSG_MAGICA           0x12345678
     
    284285         BOOL   IsWindowDestroyed()           { return state >= STATE_DESTROYED; };
    285286         BOOL   IsWindowIconic();
     287
     288//hack alert (see DestroyWindow)
     289         BOOL   IsChildDestructionInProgress() { return fChildDestructionInProgress; };
     290         void   SetChildDestructionInProgress(BOOL fDestuctionInProgress)
     291         {
     292             fChildDestructionInProgress = fDestuctionInProgress;
     293         };
     294//hack end
     295
    286296         //Window procedure type
    287297         BOOL   IsWindowUnicode();
     
    415425                 fParentChange:1,
    416426                 fDestroyWindowCalled:1, //DestroyWindow was called for this window
     427                 fChildDestructionInProgress:1,
    417428                 fTaskList:1,            //should be listed in PM tasklist or not
    418429                 fXDefault:1,
Note: See TracChangeset for help on using the changeset viewer.