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