CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    2

    Find a COM object by HWND

    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


  2. #2
    Join Date
    May 1999
    Location
    Republic of Korea
    Posts
    100

    Re: Find a COM object by HWND

    I think CWnd::FromHandle(HWND hwnd) will do.

    Good luck.




  3. #3
    Join Date
    Apr 1999
    Posts
    2

    10x, but it doesn't work :-(

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured