Hello everybody,

Does anybody have experience creating a vertical toolbar? I tried using CCS_VERT style but my toolbar is still just lying horizontal at the top of the client area:confused:

Any help or links appreciated.

best regards,

Posted on 2003-06-02 00:00:00 by czDrillard
How did you set your style, you have to use the TB_SETSTYLE message to set it to vertical :

invoke SendDlgItemMessage, hDlg, idToolBar, TB_SETSTYLE, 0, CCS_VERT
Posted on 2003-06-02 00:30:54 by donkey
Thanks for reply donkey, sorry about lack of information.
Using windows 98. I have three horizontal toolbars in rebar bands. I want the third bar to be vertical. Here is the code I got:

invoke CreateToolbarEx,hWndList,\
0,90,18,0,0,sizeof TBBUTTON

mov hToolBarUser,eax

invoke LoadBitmap,hInstance,109
mov hBmapUser,eax

invoke SendMessage,hToolBarUser,TB_SETSTYLE,0,CCS_VERT
invoke SendMessage,hToolBarUser,TB_SETSTYLE,0,CCS_LEFT

(can't get that code thingy to work!)

I end up creating half a button on top of the left side of the top rebar. Perhaps my question should have been 'how do I set a vertical rebar band?'

best regards,

Posted on 2003-06-02 09:19:48 by czDrillard
Oh, that's a little different. I can't say that I have ever seen a vertical rebar before. Don't even know if it can be done. I never use rebars so I have to give up on this one, sorry :)
Posted on 2003-06-02 09:34:49 by donkey
I only have experience with horizontal toolbars, sorry.
Posted on 2003-06-02 09:43:13 by iblis
Yes, I did say horizontal. :grin:
Posted on 2003-06-02 12:24:09 by iblis
Is that possible?!
Posted on 2003-06-02 18:38:16 by comrade
iblis, your toolbar is drunk, or is it the coder? :grin:
Posted on 2003-06-02 19:39:56 by bitRAKE
It's just the first step in my design for the worst user interface ever!
Posted on 2003-06-02 22:14:29 by iblis

your menus are upside down :grin:
Posted on 2003-06-02 22:48:19 by donkey
:rolleyes: :) :grin:

c'mon guys, be serious please, i thought that was possible, but the problem is how to achieve that UNcommon common controls?
Posted on 2003-06-03 06:37:32 by dion
iblis, your diagonal rebar gave me a great idea. I now make vertical rebars. The trick is getting the monitor to stay balanced on its side:grin:

Seriously, vertical rebars can be done. How about outlook express, one of its configurations has a vertical toolbar. Anyways, thanks for the replies and I'll keep on trying. When I find the method. I'll post it.

best regards,

Posted on 2003-06-03 21:19:51 by czDrillard
I dont have the answer.. but perhaps if you use WinSpy (for window styles) on the Ms Office tool bar it will give you some clues... (when docked on the side of the desktop, you get a vertical tool bar).

I would do it for you if i had it installed.. (but like most im sure, it was probably the first program axed from the install ;) )
Posted on 2003-06-03 22:38:58 by NaN
Vertical rebars are an actuality. The Rebar control has an align property that can be set to any border. top, left, right, or bottom
Posted on 2003-06-05 14:22:56 by djinn
Thanks djinn,

Could you explain how I can implement this or give me a link to some information please. I've read about a million entries in google and found nothing. Well, I did learn something. Re-bar is embedded in concrete to add strength;)

best regards,

Posted on 2003-06-05 22:07:23 by czDrillard
First of all, in reading your first post on the subject, all bands of a rebar control must be the same alignment. If you want one of your toolbars to be vertical, it needs to be in a separate rebar control (CCS_VERT is the correct style for left docking).

There is a lot of good info on the MSDN site. One link in particular which gives some good info on all 22 common controls is http://www.microsoft.com/msj/1298/controlspy3/controlspy3.aspx

good hunting
Posted on 2003-06-09 16:54:32 by djinn
Iblis, love your version. maybe can use one in each corner as toolbars used in a game that the center would be for targeting and all tools right there in front of you LOL:grin:
Posted on 2003-06-09 17:00:01 by djinn
djinn, thanks for the link:alright:

best regards,

Posted on 2003-06-10 07:58:09 by czDrillard
Your answer is in MSDN (funny non).You can see sheelcc.chm , common controls that say

RBS_VERTICALGRIPPER Version 4.71. The size grip will be displayed vertically instead of horizontally in a vertical rebar control. This style is ignored for rebar controls that do not have the CCS_VERT style

rebar styles
I say you more if you how to put a smilies in my mail

Posted on 2003-06-10 11:57:47 by ToutEnMasm