Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How add vertical line separators to toolbars with flat buttons?

88 views
Skip to first unread message

Simon

unread,
Oct 4, 2008, 4:10:03 PM10/4/08
to
I use Visual C++ 6.0 and MFC. I have just added a manifest to my
application to get XP-styles. The relevant part of the manifest looks like
this:

<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>

This works and makes my dialog boxes look much better with XP-style buttons
and other controls. But my toolbars look worse. All my toolbars now have
flat buttons on them. The problem with this is that I think that now they
are flat they need little vertical lines to separate groups of buttons from
one another (the equivalent of menu separators). I see that other
applications have these, but I can't work out how to get my toolbars to have
them. The MFC CToolbar SetButtonStyle lets you specify a separator, but you
just get a space - not a vertical line. I have tried using CodeJock
toolbars but can't get on with them (I haven't been able to find the
documentation I need to use them).

Can anyone suggest how I can add little vertical line separators to
toolbars? (or revert to 3D buttons on the toolbar while still keeping the
new controls on the dialogs)

All help much appreciated.

Simon


Simon

unread,
Oct 5, 2008, 2:51:14 PM10/5/08
to
I think I've found the answer to my own question. You need to use
CToolBar::CreateEx and there are various styles there which give vertical
bar separators.

Simon


"Simon" <Sim...@newsgroup.nospam> wrote in message
news:LKKdneFWOpY5UHrV...@pipex.net...

0 new messages