Jump to content
  • Advertisement
Sign in to follow this  
Ferneu

Question about this kind of win32 control

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

Sorry for not being so vague on the topic title, but that's exactly why I am posting here. I'm doing a starcraft like map editor and, if you have ever seen SC editor, you should have noticed that there is a little bar that splits the map window from teh other windows, and allows you to resize the map window the way you want. The little bar I'm talking about is the same one the Visual C++ 6.0 has, separating the workspace files/classes from the acctual code. What's the name of that control (the little bar)? What should I do in order to implement one using pure WINAPI calls (non MFC)? I don't know if now you guys now can picture the control I'm talking about. If you don't, I can post a screenshot of it, or whatever.

Share this post


Link to post
Share on other sites
Advertisement
It's called a splitter control and to the best of my knowledge there's no straight Win32 version of it.

Share this post


Link to post
Share on other sites
thx for the info about it's name.

So, the only way to place one is using
MFC or something like that?

Share this post


Link to post
Share on other sites
Yes-No. You can of course roll your own. There's two possibilities to do that:

Either have your HWND be really only the small bar or be the whole client area and have the two panes as your childs.

I chose the second approach and had some troubles with redrawing correctly. It's not really difficult, just keep the HWNDs of the two panes you're splitting and implement some dragging code allowing you to move your bar and resize the panes accordingly.

Share this post


Link to post
Share on other sites
Note: Anything which can be done in MFC can be done natively

And I cant find any direct support for it in the way of standard controls.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Check out http://www.catch22.net/tuts/splitter.asp for an example. There are some really good tutorials of other things elsewhere on his site. He's done some great work on topics I have not seen anywhere else.

David

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!