Thread: Help With Handles

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    5

    Red face Help With Handles

    You gues I am reading this book and browsing through windows tutorials and I'm comming along pretty well...Could someone just try to give me a better explanation of handlers or messages cuz i can do them I just want to know how they work. Like in winmain
    int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) If you could explain I would be apriciate it...My aim screen names are in my profile

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    156
    In Windows, instead of applications receiving information directly from the keyboard, mouse driver, as well as messages generated by other applications, etc. the operation system intercepts all input information, packaging this information using MSG message structure and then forwarding the prepared messages to the appropriate recipient. The recipient application uses TranslateMessage for application specific interpretation before calling DispatchMessage to forward the individual traffic in terms their appropriate handlers.

    The WndProc procedure is the point where that application actually begins to function. Conventionally it uses a switch statement to dispatch the message to the final handler. Or function to handle the particular message.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with DB handles
    By pokks in forum C Programming
    Replies: 4
    Last Post: 01-04-2006, 12:06 PM
  2. organizing window handles
    By FOOTOO in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 11:53 PM
  3. PThread Handles Not Closing?
    By Geolingo in forum C++ Programming
    Replies: 7
    Last Post: 04-21-2005, 03:41 AM
  4. Handles to visible programs
    By Snip in forum Windows Programming
    Replies: 3
    Last Post: 03-26-2005, 08:52 PM
  5. one window, two handles
    By Devil Panther in forum Windows Programming
    Replies: 10
    Last Post: 01-15-2005, 09:45 AM