How to get a control from a handle

30 12 2008

There have an MFC function FromHandle within the class CWnd. This function returns a pointer to a CWnd object when given a handle to a window.


Ie CWnd* pWnd = FromHandle(hWnd);



2 responses

2 07 2015
Apurv Shah


Good work!!! Keep it up!

Just a minor suggestion…you should also add one artical for “MFC Serialization”. Which is an important feature of MFC.

29 07 2015
Sanoop S P

Thank you. Yes I will add it.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: