Solved

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

Posted on 2001-08-28
3
280 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now