CWnd::GetSafeHwnd

Call this member function to obtain the window handle for a window. It returns NULL if the CWnd is not attached to a window or if it is used with a NULL CWnd pointer.

Syntax

HWND GetSafeHwnd( ) const;

At a Glance

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

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories