win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinRegisterWindowDestroy (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINWINDOWMGR
 
BOOL WinRegisterWindowDestroy(hwnd, fRegister)
HWND hwnd;         /* handle of the window */
BOOL fRegister;    /* register flag        */
 
The WinRegisterWindowDestroy function notifies other applications when the
specified window is destroyed.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwnd       Identifies the window being destroyed.
 
fRegister  Specifies whether the window is to be registered. If fRegister is
           TRUE, this function registers the window so that when it is
           destroyed, a WM_OTHERWINDOWDESTROYED message is broadcast to all
           main windows of other tasks. Registering the window is
           accomplished by incrementing a register count. If fRegister is
           FALSE, this routine unregisters the window by decreasing the
           register count by one, although the window is not fully
           unregistered until the count reaches zero.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinDestroyWindow, WM_OTHERWINDOWDESTROYED