Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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