Sign in to follow this  
GDMichael

MsgProc Design Question

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this