Jump to content
  • Advertisement

Archived

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

Tracy

Initiates question on message handling

This topic is 6669 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!