Expand Minimize
This topic has not yet been rated - Rate this topic

CWnd::GetSafeHwnd

Returns m_hWnd, or NULL if the this pointer is NULL.

HWND GetSafeHwnd( ) const;

Returns the window handle for a window. Returns NULL if the CWnd is not attached to a window or if it is used with a NULL CWnd pointer.

See the example for CWnd::SubclassWindow.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.