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.
HWND GetSafeHwnd( ) const;
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CWnd Overview, CWnd Member Functions, Window Class Categories