The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on July 19, 2007, 04:45:56 PM

Title: vertical toolbar
Post by: ragdog on July 19, 2007, 04:45:56 PM
hi @all

I would like there my am toolbar vertically indicated with A resource editor works this I would like now with this function

invoke CreateWindowEx, NULL,
                             addr ToolbarClass,
                              NULL,
                             WS_CHILD or WS_VISIBLE  or WS_EX_LEFT + CCS_VERT + CCS_TOP + CCS_NORESIZE  + TBSTATE_WRAP ,
                             0,0,100,50,
                              hWnd,
                             NULL,
                             hInstance,
                             NULL

i have solved this problem

               
invoke CreateWindowEx,0,
           ADDR ToolbarClass,
           NULL,
           WS_CHILD or WS_VISIBLE or WS_EX_LTRREADING or CCS_NODIVIDER or CCS_NORESIZE /
           or TBSTYLE_FLAT + TBSTYLE_WRAPABLE,
           10,10,40,382,
           hWnd,NULL,
           hInstance,NULL



greets
ragdog
Title: Re: vertical toolbar
Post by: ragdog on July 19, 2007, 07:21:41 PM
i have a question, how could i scroll up and down a vertical toolbar  ?
what apis or have your an example?

thanks in forward
Title: Re: vertical toolbar
Post by: ragdog on July 20, 2007, 08:02:18 PM

have your no ideas for solve my problem

greets
ragdog
Title: Re: vertical toolbar
Post by: Biterider on July 21, 2007, 07:02:29 AM
Hi ragdog
One way to solve your problem is when you embed your control on a new window. This parent window has to show the vertical slider and you have to manage it to move accordingly the vertical toolbar. It is the same strategy you use with rebars.

Regards,

Biterider
Title: Re: vertical toolbar
Post by: cham on April 19, 2008, 10:58:21 AM
TBSTATE_WRAP is a state of the toolbar button!MSDN has a sample:http://msdn2.microsoft.com/en-us/library/bb760446(VS.85).aspx#Creating_Vertical_Toolbar