Поделиться через


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

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart