How can i convert HWND to CWnd?
I am write a program that will call MFC dll, and the dll need pass Cwnd and i just have HWND. How can i conver it?
Thanks
CWnd::FromHandle(HWND);
Upon review, this only creates a temporary object, so it may not be what you want.
Creating a CWnd yourself and then calling Attach() is probably better.
[edited by - cgoat on October 16, 2002 9:46:40 AM]
Upon review, this only creates a temporary object, so it may not be what you want.
Creating a CWnd yourself and then calling Attach() is probably better.
[edited by - cgoat on October 16, 2002 9:46:40 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement