|
-
May 9th, 2001, 10:19 AM
#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
-
May 9th, 2001, 11:34 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|