Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Windows Message procedure

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2003
    Location
    France
    Posts
    9

    Windows Message procedure

    Hi,

    I'm beginning programmation under windows and i don't really understand the windows message procedure. I wrote a programm where there is several windows. Can I have several message procedure? If so, how i use the main Loop?

    Thank's

    keziah

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2003
    Location
    Virginia
    Posts
    601

    Re: Windows Message procedure

    Yes, each type of window can and probably should have its own message procedure. If they are the same type, they should use the same. Messages are first routed to the window owning the message so to speak. If it doesn't handle it, it goes up to the next level for handling, and so on until it goes up to the system and it will usually ignore it and removes it. The main loop does not need to be changed, usually, though you could use PeekMessage instead of GetMessage, but it depends on your needs. And, you can add code in the while loop for processing to be done outside of the windows messaging loop.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2003
    Location
    France
    Posts
    9

    Re: Windows Message procedure

    Thank's for your answer shinpaughp.

    kez

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •