CWnd::DestroyWindow

Call this member function to destroy the Windows window attached to this CWnd object.

Syntax

virtual BOOL DestroyWindow ( );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

The CWnd::DestroyWindow member function only sends the WM_DESTROY message. Windows CE does not support the WM_NCDESTROY message.

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::OnDestroy, CWnd::Detach