Help With Handles

This is a discussion on Help With Handles within the Windows Programming forums, part of the Platform Specific Boards category; You gues I am reading this book and browsing through windows tutorials and I'm comming along pretty well...Could someone just ...

  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, 11:06 AM
  2. organizing window handles
    By FOOTOO in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:53 PM
  3. PThread Handles Not Closing?
    By DeepBlackMagic 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, 07:52 PM
  5. one window, two handles
    By Devil Panther in forum Windows Programming
    Replies: 10
    Last Post: 01-15-2005, 08:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21