win32 open its self again

Hi! I am writing a win32 application, and I want it to open 2 new windows of itself when you press a button. eventually I'm going to make them open in random places on the screen, but right now I cant figure out how to get them there in the first place. I have looked on the internet, and nothing helpful can be found. I'm sure its something simple, but I'm kinda new to win32. Thank you for time, and all help is deeply appreciated.
Last edited on
what i have understood is, you want to open your new windows in the parent window.
if thats the case, during the creation of these two windows (CreateWindow), set the hParent parameter to be the first window. your new windows will be always inside the first window.
i hope you can handle the button press, which will be inside wm_command.
Topic archived. No new replies allowed.