CWnd::FromHandle

Call this member function to retrieve a pointer to a CWnd object when you have a handle to a window.

Syntax

static CWnd* PASCAL FromHandle( HWND hWnd );

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, CWnd::DeleteTempMap