Skip to main content
GameDev.net gamedev.net
🔒 Locked

Focus for Multiple Child Windows

Started by jonbell Jan 28, 2004 at 11:20 AM 0 replies 250+ views
Original Post
jonbell
jonbell
Hi i have created my main window and then i create a few other standard windows using the main window as the parent. The problem I am having is that the child windows cant seem to get the focus properly (controls i add to these windows cannot be used). If i click any of the windows i can drag them and resize them but the title bar never goes blue to indicate it has the focus. I know that this problem can be solved by using the MDI (this is how we did it at the last place i worked) but i really dont want all the hassle of doing that. Any ideas?
Ruudje
Ruudje
There are 2 ways:

- either use the mdi stuff you already know about
- dont set the main window as the parent of the new windows. Instead dont give them any parent.

But you are probably looking for the mdi-way

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.