Solved

How to remove individual messages in Delphi App

Posted on 2011-02-25
5
336 Views
Last Modified: 2012-05-11
Hi,   XP, D7

I have an application which sends messages to fire a particular procedure using postmessage.
These messages are generated by a timer, keypress or interrupt from hardware.

I need a way to monitor messages and remove a message already sent.
Any ideas?

Thanks
0
Comment
Question by:chrislock
  • 2
  • 2
5 Comments
 
LVL 36

Accepted Solution

by:
Geert Gruwez earned 250 total points
ID: 34979547
you can use peekmessage to find if messages exist in a message system

sample:
https://forums.embarcadero.com/thread.jspa?threadID=17598
0
 
LVL 19

Expert Comment

by:Thommy
ID: 34979635
WinSpector / Tool for display system messages...

Winspector 1.0b Build 37
http://www.softpedia.com/get/Security/Security-Related/Winspector.shtml
0
 
LVL 19

Assisted Solution

by:Thommy
Thommy earned 250 total points
ID: 34979747
Ok, I think you are not looking for a tool. You want to do it in your own app...

For messages sent to your Delphi app you can write your own message handler.

TApplication has a method HookMainWindow which you can use to capture messages before your application processes them.

Here you can find examples...
http://www.delphipages.com/forum/showthread.php?t=182431
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 34979816
Thommy ... you missed my comment ... you don't need to capture
you can peek :)
0
 

Author Closing Comment

by:chrislock
ID: 34981408
Thanks
I've split the points.
One of you led me to the component below:

http://www.torry.net/vcl/system/windows/mi.zip
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now