Export (0) Print
Expand All
MFC
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.