Solved

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

Posted on 2001-08-28
3
296 Views
Last Modified: 2013-12-03
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
Comment
Question by:T_Natarajan
  • 3
3 Comments
 
LVL 2

Accepted Solution

by:
egsemsem earned 5 total points
ID: 6436689
Try this:

Style = SendTBMessage(ToolbarHandle, TB_GETSTYLE, 0, 0);
  Style = TBSTYLE_FLAT | TBSTYLE_TRANSPARENT ;
  lRet = SendTBMessage(ToolbarHandle, TB_SETSTYLE, 0, Style);
0
 
LVL 2

Expert Comment

by:egsemsem
ID: 6436703
Sorry replace SendTBMessage with ordinary API SendMessage function
0
 
LVL 2

Expert Comment

by:egsemsem
ID: 6436718
and don't forget to set the toolbar control's style property to tbrFlat
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question