CWnd::FromHandlePermanent 

static CWnd* PASCAL FromHandlePermanent( HWND hWnd );

Return Value

A pointer to a CWnd object.

Parameters

hWnd

An HWND of a Windows window.

Remarks

Returns a pointer to a CWnd object when given a handle to a window. If a CWnd object is not attached to the handle, NULL is returned.

This function, unlike FromHandle, does not create temporary objects.

CWnd OverviewClass MembersHierarchy Chart

See Also   CWnd::FromHandle