I now want to create a menu for the game project am working on.. But the project already have a WinMain class..
So is there any way i can create a new cpp file and in the current WinMain call the window i made in the other cpp file?
And if a button was pressed i want to close the window and open the other one.
So basicaly here i want to replace the WinMain i have right now and in the WinMain call a window that i made in another file.. Is this possible or is there another better way to do it?
You might need to create a menu application which processes options/settings, user’s choices etc before the user presses the Start button to bring up your game application. They stay separated as two entities.
If your current game GUI doesn’t have a menu, you can certainly create one such as context (popup) menu, menu bar, etc, which can be stored inside the game cpp file via message map processing.
if these doesn’t give you any hint then you may rephrase