How to remove background of CMFCToolBar

  • Thread starter Thread starter Yan Yang
  • Start date Start date
Y

Yan Yang

Guest
The toolbar is a CMFCToolBar object, the toolbar buttons are correct but the toolbar has a white background despite the fact that TBSTYLE_TRANSPARENT is set on the toolbar style. The code is below.

Any suggestion would be appreciated.

m_tbAnimationButtons.LoadToolBar(IDR_ANIMATION_BAR);
m_tbAnimationButtons.SetOwner(this);
m_tbAnimationButtons.SetPaneStyle(CBRS_TOOLTIPS | CBRS_ALIGN_BOTTOM | TBSTYLE_TRANSPARENT);
m_tbAnimationButtons.EnableDocking(CBRS_ALIGN_ANY);
m_tbAnimationButtons.DockToFrameWindow(CBRS_ALIGN_ANY);
m_tbAnimationButtons.EnableToolTips(TRUE);
m_tbAnimationButtons.AdjustLayout();
m_tbAnimationButtons.AdjustSizeImmediate();

Continue reading...
 
Back
Top