CWnd::FromHandle 

static CWnd* PASCAL FromHandle( HWND hWnd );

Return Value

Returns a pointer to a CWnd object when given a handle to a window. If a CWnd object is not attached to the handle, a temporary CWnd object is created and attached.

The pointer may be temporary and should not be stored for later use.

Parameters

hWnd

An HWND of a Windows window.

CWnd OverviewClass MembersHierarchy Chart

See Also   CWnd::DeleteTempMap