Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the CWnd from a dll

Status
Not open for further replies.

JeepJson

Programmer
Oct 15, 2000
3
US
What is the function to get the CWnd in a dll, of the app that is using the dll, instead of going this route:

HWND hWnd = FindWindow(NULL, "My Prog")
CWnd* pWnd = pWnd->GetFromHandle(hWnd);

Where as that is the code in the dll to get the CWnd of the app that is using the dll..

Thanks a ton, I know I am just overlooking it in the MSDN.. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top