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

How can I hide the separator line in flat style CToolbar?

0 views
Skip to first unread message

Akustikanten

unread,
Jun 18, 2008, 4:13:05 AM6/18/08
to
I want to add a custom control to a Toolbar. As described in the Visual C++
sample CTRLBARS I add a separator to my toolbar class which is derived from
CToolBar. The separator gets the width of the desired custom control (in this
case a combo box). Then the combo box is created in the rect of the separator
item and with the toolbar as parent. Everything works fine so far: the combo
box is displayed in the toolbar.
In addtion to the combobox, the toolbar contains several normal toolbar
buttons with a size of 30x30 pixels. This makes the toolbar higher than the
height of the combo box. When I set the toolbar to use the flat style
TBSTYLE_FLAT, the separator line is visible behind the combobox. Disabling
the flat style makes the line disappear.
How can I hide the separator line in flat style?

I use the Version:

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727 SP1


Victor

unread,
Jun 18, 2008, 3:50:25 PM6/18/08
to
Chek it out:
http://www.codeguru.com/cpp/controls/toolbar/flattoolbar/article.php/c2561/

Victor

"Akustikanten" <Akusti...@discussions.microsoft.com> wrote in message
news:FD897C79-7682-4506...@microsoft.com...

0 new messages