Button that changes the page.

Hello cplusplus community. My name is Chris and i have a small problem.
I have recently made a GUI program that has x Buttons that write specific things in a .txt file & deletes the last character in that .txt file.
Code : http://pastebin.com/rSUyxd7V
My Question: How to make a button that changes the actual window to another one?
Like : Program Start with Page1, and after i press Page2 another window is shown where the last one is.
2 buttons, page1 and page2. So i can switch back and forth.
//NO NEED FOR SECOND PAGES
Last edited on
I would think that the better forum would be 'Windows Programming'.

It is not that trivial. Take a look at MDI:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms632591%28v=vs.85%29.aspx

Alternatively you could create all sub windows at their respective positions and show/hide them according to the button event.
@coder777
Thank you for your response.
Belive me i am so dumb that i don't know where to look at :(
Tho currently i don't need anymore a second page.
Now i need a button that shows the GUI's buttons that have been pressed http://www.cplusplus.com/forum/general/192338/
Topic archived. No new replies allowed.