954,260 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

i have a problem

please explain me windows message handler

mehdy
Newbie Poster
8 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 
please explain me windows message handler


Hi ,i know nothing about it but using google i find this and much more . http://www.codeproject.com/dialog/messagehandling2.asp

caperjack
I hate 20 Questions
Team Colleague
13,069 posts since Aug 2003
Reputation Points: 1,064
Solved Threads: 812
 

And this microsoft page can be helpful I think ...

http://support.microsoft.com/kb/170570/EN-US/

nanosani
Unauthenticated Liar
Team Colleague
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
 

For all of you programmers out there- please don't Trout Slap me too hard for the following explanation; coding is definitely not one of my areas of expertise...


On a very basic level, message handlers are pieces of code that tell a program (or Windows itself) what to do when different events occur in your system.

A common example of an "event" would be the action of a user clicking their mouse on a certain button within one of the program's windows. When a user does that, the program needs to know:

- that some button actually has been clicked.
- which exact button has been clicked.
- what action it should perform when that specific button is clicked.

The fact that the user has clicked a button in one of the program's windows, which exact button it was, and other information concerning the specific event, is transmitted from the program's window to the program itself via a chunk of data called a "message".

Included in (or accessible to) the program are pieces of code called "event handlers" or "message handlers" which contain instructions on what to do when the program is notified via the message that an event has occurred.
Based on the information contained in a given message, an appropriate message handler is located, and the processing of the action(s) that should occur in response to that message are then processed by the handler.

DMR
Wombat At Large
Team Colleague
7,229 posts since Dec 2003
Reputation Points: 221
Solved Threads: 370
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You