Share via


CWnd::FromHandlePermanent

staticCWnd*PASCALFromHandlePermanent(HWNDhWnd**);**

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