Export (0) Print
Expand All
Expand Minimize

CWnd::FromHandlePermanent

Returns a pointer to a CWnd object when given a handle to a window.

static CWnd* PASCAL FromHandlePermanent( 
   HWND hWnd  
);

hWnd

An HWND of a Windows window.

A pointer to a CWnd object.

If a CWnd object is not attached to the handle, NULL is returned.

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

Header: afxwin.h

Show:
© 2014 Microsoft