Click to See Complete Forum and Search --> : Pane Resizing. Rebar?
QBasicer
July 16th, 2006, 10:57 AM
What I have is an edit control on the left, and a listbox on the right. You know how programs have this little bar that goes between them that you can use to resize each side? Kinda like frames, where you can resize the frame accordingly. Is this control called a rebar, or do I have to look for something else?
Thanks in advance.
Runt888
July 17th, 2006, 05:52 PM
If I understand what you're talking about, they are generally called a split bar (from what I've seen). The WIN32 API doesn't provide them. You need to use a windowing framework like MFC to get them, or roll your own.
Kelly
Ali Imran
July 17th, 2006, 10:23 PM
What you are talking abut is not a rebar contol that is called Splitter or a Divider, I hope MFC (Micorosoft Founcation Classes) offers that.
Secondly if you are interested in implementing it using win 32 api only, there is a very good tutorial to make one,
http://www.catch22.net/tuts/splitter.asp
It is pretty streightforward, but if you still have problem understanding it, let us know, so that we can help you creating one from scratch.
btw, the magic in a divider is SetCapture that tracks the mouse movement, and your code responds back the changes made.
If you do not want to create a custom control and dont want to register special class for it, simply use static with SS_NOTIFY style to make Splitter/Divider, but remember to sub-class the to fully control it.
stay well :)
QBasicer
July 19th, 2006, 04:04 PM
Thanks for your help and resource! I'm a few days (or a week) off from actually implementing this (there are more important features I have to take care of). If I need any help, I'll post a new topic and cite this thread.
Thanks muchly.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.