Thread: ???Handler???

  1. #1
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584

    ???Handler???

    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.
    1978 Silver Anniversary Corvette

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    handles events and or other things

    Example:

    WndProc() handles all the windows messages your program gets.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    What exactly do you mean by "handles events"? Thanks.
    1978 Silver Anniversary Corvette

  4. #4
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    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.

  5. #5
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    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.
    1978 Silver Anniversary Corvette

  6. #6
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    >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.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  7. #7
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Oh, I understand. Thanks.
    1978 Silver Anniversary Corvette

Popular pages Recent additions subscribe to a feed