Alec S.
2004-08-01 20:35:00 UTC
Hi,
I'm working on a Spy++/WinSpy type application where the user can drag
and drop a window picker to select a window and get a bunch of information
on it. I've got the picker working and I can already display a lot of
information about the window using the CWnd* I get. However, I cannot
figure out a way to get a pointer to the CWinApp that spawned the target
window. I would like to display some application information (especially
the command line that was passed to the program that owns the selected
window). Is there some way to get the application from a CWnd* or HWND?
Thanks.
--
Alec S.
alec <@> synetech <.> cjb <.> net
I'm working on a Spy++/WinSpy type application where the user can drag
and drop a window picker to select a window and get a bunch of information
on it. I've got the picker working and I can already display a lot of
information about the window using the CWnd* I get. However, I cannot
figure out a way to get a pointer to the CWinApp that spawned the target
window. I would like to display some application information (especially
the command line that was passed to the program that owns the selected
window). Is there some way to get the application from a CWnd* or HWND?
Thanks.
--
Alec S.
alec <@> synetech <.> cjb <.> net