Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Erik Rufelt

Child Windows

This topic is 6026 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

Hi, Is it possible to create a child window inside another window, and give it a title bar? When I add WS_CAPTION to the window style the window doesn''t get the focus when clicked if it also has the WS_CHILD style. There are lots of applications that has child windows that are focusable and get a hilited title bar.. how do i create windows like this? I read at the MSDN Library about MDI applications.. but I''d rather not use that, I just want my application to be able to have several child windows inside a large window. I want text edit controls in my window, but they don''t work if it''s a child window and has a title bar at the same time. I managed to make the text edits focus when clicked by using my own WndProc function for them, but popup menus and copy/paste still doesn''t work. Normally I can''t even select the text edits since the window isn''t in front.. Any help is much appreciated! /Erik

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Erik Rufelt
Lots of applications that has child windows that are focusable and get a hilited title bar.. how do i create windows like this?
I read at the MSDN Library about MDI applications.. but I''d rather not use that, I just want my application to be able to have several child windows inside a large window.



You answered your own question.

Share this post


Link to post
Share on other sites
Sorry, what you want is MDI.

It''s actually not all that complicated, if you grasp the basic window creation and management API.

Read up on it, it''ll be good for ya

Share this post


Link to post
Share on other sites
Ok I''ll guess I''ll have to learn MDI then.. =)
Is that really the only way?
Everything works as long as the child windows don''t have a title bar.. I don''t see why it should make a difference..

Share this post


Link to post
Share on other sites

  • 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!