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
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.