• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 315
  • Last Modified:

How do I create a flat Toolbar in VC with Win32 ?

Hi,
 How do I create a flat Toolbar in VC using Win32, like the one's you see in any MS Apps.

Kind Regards,
Natarajan.
0
T_Natarajan
Asked:
T_Natarajan
  • 3
1 Solution
 
egsemsemCommented:
Try this:

Style = SendTBMessage(ToolbarHandle, TB_GETSTYLE, 0, 0);
  Style = TBSTYLE_FLAT | TBSTYLE_TRANSPARENT ;
  lRet = SendTBMessage(ToolbarHandle, TB_SETSTYLE, 0, Style);
0
 
egsemsemCommented:
Sorry replace SendTBMessage with ordinary API SendMessage function
0
 
egsemsemCommented:
and don't forget to set the toolbar control's style property to tbrFlat
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now