Re: Intercept messages of an app.
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 10 Aug 2006 12:19:37 -0400
Note that this assumes the text being displayed is represented as a string; if it were an
owner-draw listbox it will also require reverse-engineering the ItemData field. (Example:
my "logging listbox" is an owner-draw control where each type of line is a different
subclass of the abstract log message class)
joe
On 10 Aug 2006 08:28:18 -0700, "Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote:
Joseph M. Newcomer [MVP]I have a logging application that fills a listbox window.
I don't have access to the source code of that app. and
I want to store the logs into a text file..
Is there a way for a separate application to log strings
sent to this listbox (and send the strings into a text file)?
What APIs should I look after.. what about spy++?
Yes, you can do it by using hooks (SetWindowsHookEx). In this case you
will have a process wide hook. Look at MSDN to see what type of hook
would be needed.
---
Ajay
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Intercept messages of an app.
- From: Ajay Kalra
- Re: Intercept messages of an app.
- References:
- Intercept messages of an app.
- From: Mike Gleason jr Couturier
- Re: Intercept messages of an app.
- From: Ajay Kalra
- Intercept messages of an app.
- Prev by Date: Re: taking the techchek test for visual C++ 6
- Next by Date: Re: Create() fails to draw the Control
- Previous by thread: Re: Intercept messages of an app.
- Next by thread: Re: Intercept messages of an app.
- Index(es):
Relevant Pages
|
|