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.
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?