Click to See Complete Forum and Search --> : Find a COM object by HWND


ukk
April 5th, 1999, 07:27 AM
How can I get a pointer to any interface of an ActiveX control if I know the HWND of its window?

Best regards & 10x
Dimitar

Walter I An
April 5th, 1999, 07:44 AM
I think CWnd::FromHandle(HWND hwnd) will do.

Good luck. :)

ukk
April 5th, 1999, 08:42 AM
10x, Walter, but it's not working :-(

It seems it will work for CWnds from my app, but the case is - I have a 3rd party ActiveX instantiated in another app, and mine is trying to get its props.

UKK