Archived

This topic is now archived and is closed to further replies.

Initiates question on message handling

This topic is 6361 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Normally I would put all my controls/events in the WndProc() function. I thought about placing some game specific controls into another message handling function and using WndProc() mainly for the exit message. Would this be more or less efficient?

int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine,int nCmdShow) { MSG msg; BOOL gamerunning=TRUE; if(!initApp(hInstance,nCmdShow)) /*<

Share this post


Link to post
Share on other sites
Very slight difference but I don''t really see the need for the duplication..

Maybe you should look at subclassing the wndproc and see if it better fits your needs.. look at SetWindowLong

..

Share this post


Link to post
Share on other sites