msflags |= TBSTYLE_FLAT | TBSTYLE_TRANSPARENT;
}
}
+ if (style & wxTB_NODIVIDER)
+ msflags |= CCS_NODIVIDER;
+ if (style & wxTB_NOALIGN)
+ msflags |= CCS_NOPARENTALIGN;
// MSW-specific initialisation
if ( !wxControl::MSWCreateControl(TOOLBARCLASSNAME, msflags) )
void wxToolBar::OnMouseEvent(wxMouseEvent& event)
{
+ if (event.Leaving() && m_pInTool)
+ {
+ OnMouseEnter( -1 );
+ event.Skip();
+ return;
+ }
+
if (event.RightDown())
{
// For now, we don't have an id. Later we could
else
{
w = LOWORD(lParam);
- h = r.bottom - r.top;
+ if (HasFlag( wxTB_FLAT ))
+ h = r.bottom - r.top - 3;
+ else
+ h = r.bottom - r.top;
if ( m_maxRows )
{
// FIXME: 6 is hardcoded separator line height...
- h += 6;
+ //h += 6;
+ if (HasFlag(wxTB_NODIVIDER))
+ h += 3;
+ else
+ h += 6;
h *= m_maxRows;
}
}