Jump to content
  • Advertisement
Sign in to follow this  
SelethD

I need help making a child window

This topic is 4812 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have been trying for almost a week to learn how to make a child window inside a parent window. Or even a button inside a parent window. And now I am just totally frustrated. I have looked through several tutorial but they are all too complicated to understand. Could someone please make a small VC project that opens a main window, then opens a child window or makes a button inside that parent window using CreateWindow or CreateWindowEX. And let me download it so I can look at a complete project and see what project settings I need to use and what headers to include. I really need a complete picture to learn from. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Sorry don't have time to create you one, but http://www.winprog.org/tutorial/ has all the info you need, good luck!

Share this post


Link to post
Share on other sites
That web site looks like it has a lot of good info, and it seems to be explained clearly, but im just starting to read through it.

As for the example code, wow! I cleared up lots of things for me, and SUCCESS! I tried putting a button in my own code, and it worked, well kinda....

Its invisible until I click on where it should be, then it pops up.

But still thats a minor detail that with a bit of experimenting im sure I can figure out.

Thanks

Share this post


Link to post
Share on other sites
Remember, you have to show shild windows too! To do this, you may use ShowWindow() that will force the window to be shown or you may specify an initially visible window by using the WS_VISIBLE style.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!