Jump to content
  • Advertisement
Sign in to follow this  
GDMichael

MsgProc Design Question

This topic is 4441 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

Dear All, I am the beginner. I have a question for window message design problem. May be my question is stupid, but please answer me. Thank You. As I want to use Object-Oriented Apporach to design my game. When the winmain is called on my program, I will call a class/object called "GameEngine", like that: gameengine = new GameEngine(hInstance); gameengine->Run(); On the gameengine object, I will create a window application, like this gameengine::CreateAppWindow() { ... } And the MsgProc is placed on the class of CWinApp that is a application window class. For my question, I want to know is it a good idea that I put every action or every message handling of the game on the MsgProc on the CWinApp. I don't know how to seperate the message on the other object because there has only one LRESULT WindowProc message. Do you understand what I mean? The main problem that I want to know how to handle the Message on the game? Which object to handle the message is a good skill? Thx

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • 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!