Claus554327

Hello everyone,

I am currently building a real Windows Toolbar for an application written in another language and after some initial problems, it is going really well.

However, today, I tried out changing the alignment of the toolbar to vertical.

I realized that if the tools include separators, the toolbar is much too wide than it should be.

Leaving the separators out, the width was correct, apart from the fact that the dropdown part of the buttons was cut off.

Not using liststyle for the toolbar changed that, but still the rectangle is a bit too wide.

Does anyone have an idea about what I am doing wrong

Cheers from Europe,

Claus


Re: Visual C++ General win32: vertical Toolbar

Claus

Okay, some news:

It appears as if the buttonwidth is the core of the problem:
Even if I am using the 16x16 standard icons and leave the string field of the tbbutton struct empty, the smallest the tools get is 43x22.
I have sent TB_SETBUTTONWIDTH with min size of 16 and max of 100. While the max works, the min is seemingly ignored.

Sending both TB_SETBITMAPSIZE or TB_SETBUTTONSIZE did not really help a lot, the only thing I gain is a limited max size (somewhat like the above mentioned).

So, what else is there that I could try I am quite out of ideas right now, since I do not even understand where the problem might come from...

Cheers from Europe,

Claus




Re: Visual C++ General win32: vertical Toolbar

Damien Watkins - MSFT

Hello

Re question: win32: vertical Toolbar

Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1

For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups. The more appropriate place for your question is probably one of the Win32 newsgroups: http://msdn.microsoft.com/newsgroups/topic.aspx url=/MSDN-FILES/028/201/015/topic.xml

OTP

Thanks

Damien






Re: Visual C++ General win32: vertical Toolbar

Claus

Hello Damien,

I had this post orginally in the Windows SDK forum (although its only for Vista), but a moderator moved it here Smile

Nevertheless, thank you for your efforts.
Cheers from Europe,

Claus