Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Toolbar

Posted on 1998-06-18
2
Medium Priority
?
385 Views
Last Modified: 2010-05-03
Where can I get the Toolbar's and the Rebar's Messages value (e.g. TB_ADDSTRING = ? , RB_INSERTBANDA = ? ,and so on)? Don't tell me try at www.microsoft.com/msdn or www.microsoft.com/win32dev because from there I can't find anything what I want.
I use SendMessage funtion to let my toolbar have the flat style (SendMessage(ToolbarHandle, TB_SETSTYLE, 0, Style)),
but I also want my toolbar can change their button's image color when the user's cursor hovers over them and each button can display a string. How can I do it?
Thank you!
0
Comment
Question by:gardenia
2 Comments
 
LVL 7

Accepted Solution

by:
tward earned 160 total points
ID: 1463761
I have Visual C/C++ here and found them in COMMCTRL.H:

Public Const WM_USER = &H400

Public Const TB_ADDSTRING = (WM_USER + 28)
Public Const RB_INSERTBANDA = (WM_USER + 1)

I can include a more complete list as a comment if you would like?

0
 

Author Comment

by:gardenia
ID: 1463762
Thank you tward.I have Visual C++ too,and I can find them by
myself.Thanks again.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

810 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