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);

Advertisements

Actions

Information

2 responses

2 07 2015
Apurv Shah

Hi,

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:

WordPress.com Logo

You are commenting using your WordPress.com 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: