What, in Windows programming, is a handler and what does it do. I am a programmer in C about. I haven't yet started Windows programming, but I want to get my feet wet. Thanks.
Printable View
What, in Windows programming, is a handler and what does it do. I am a programmer in C about. I haven't yet started Windows programming, but I want to get my feet wet. Thanks.
handles events and or other things
Example:
WndProc() handles all the windows messages your program gets.
What exactly do you mean by "handles events"? Thanks.
handles "events" such as with wndproc a message being sent to your program, that would be an event and wndproc would "handle" as in wndproc does whatever needs to be done when it gets the message.
say someone clicks a button or moves the mouse those also could be events.
Oh, I think I see what is going on. When something happens (click, mouse move, etc.), the event is stored in the handler. And then you can do with the handler what you want depending on the message that is stored in the handler. Am I interpreting this right? Thanks.
>the event is stored in the handler. And then you can do with the handler what you want depending on the message that is stored in the handler. Am I interpreting this right? Thanks<
very close bu ta slight missinterpretation the event is "given" to the handler it does what you want depending on the message "given" to the handler.
but you have the concept.
Oh, I understand. Thanks.