Click a button to create or show a second window.

closed account (9hbfjE8b)
I would like some help on the topic. How can I create a window when I click a button or maybe create two windows in the beginning of the program then immediately hide the second and finally show it when clicking the button.
Last edited on
Which graphics library are you using? It should be pretty easy if you're using SFML - just create two sf::RenderWindow objects.
Last edited on
closed account (9hbfjE8b)
Uhm... just <Windows.h>
If you're using winapi CreateWindow() will do what you want.
Yep, and ShowWindow() will let you hide or show windows as you please. Though really, why would you want to use the Windows API directly instead of a more high-level graphics library?
Topic archived. No new replies allowed.