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

    Obtaining the program name from a Window handle

    Hi,
    I'm curious whether the program name associated with an open window can be obtained from an ActiveX control built using VB5 or 6. I know I can use the GetWindowText function to collect the associated window title text - however, what I really want to know is the path to the program which created the window. For instance, if I were to double click on an Excel window, can I capture that WM_LBUTTONDBLCLK message and identify it was received by a Window created by c:\program files\office\excel.exe ??

    Many thanks for any help!

    D



  2. #2
    Join Date
    May 2001
    Posts
    40

    Re: Obtaining the program name from a Window handle

    API isn't my thing.... yet but I remember stuff I read on the web pretty well.
    try going here http://www.thescarms.com/vbasic/alttab.asp


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