Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I send/post messages?

Posted on 1998-10-31
4
Medium Priority
?
141 Views
Last Modified: 2010-08-05
Hello,
I have a main form with 3 panels. I would like one panel to send a new WM message to the other panels.
I found some help about adding event handlers but I don't know how to actually send the message (after filling the lParam and wParam parametrs).
An example would be very helpful.

Thanks,
Tommy
0
Comment
Question by:tommyq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:tommyq
ID: 1345175
Edited text of question
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 200 total points
ID: 1345176
Hi tommyq,

you can use PostMessage or SendMessage.

SendMessage waits until message is processed, postmessage puts the message in the qeue and returns.

With Objects you can also use Perform. (like sendmessage, it waits until message is processed) :

RetVal := ObjectName.Perform(MessageID, wParam, lParam);

or

 SendMessage(hWnd, MessageID, wParam, lParam);

 PostMessage(hWnd, MessageID, wParam, lParam);

Regards, Zif.
0
 

Author Comment

by:tommyq
ID: 1345177
Thanks for your prompt reply, ZifNab.

How do I get the hWnd of a certain control?


0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1345178
Hi tommyq,

eg. Form1.Handle

Regards, Zif.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

730 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