-
March 27th, 2011, 02:53 AM
#1
c++ question
Hi, take a look at this:
LRESULT CALLBACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam)
{
// Route all Windows messages to the game engine
return GameEngine::GetEngine()->HandleEvent(hWindow, msg, wParam, lParam);
}
Here i am routing windows messages to my game engine so that HandleEvent can be the function to process the messagess. My question is:
I dont quite understand how returning HandleEvent(hWindow, msg, wParam, lParam); to WndProc() routes windows messages to the HandleEvent() function, could you explain to me how windows reads this code so that it routes the messages?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|