Solved

TBSTYLE_EX_DRAWDDARROWS

Posted on 1998-02-17
6
508 Views
Last Modified: 2013-11-20
How can i create a toolbar with an extented style?
How can i add an arrow with an drop down menu (like redo/undo in word).

Thanks

Martin
0
Comment
Question by:MartinD
  • 3
  • 2
6 Comments
 

Expert Comment

by:cheongyh
ID: 1316292
After you create the toolbar, set the TBSTYLE_EX_DRAWDDARROWS style to toolbar using TB_SETEXTENDEDSTYLE.
And, set the button style TBSTYLE_DROPDOWN in TBBUTTON structure's fsStyle.

So, you will see the small arrow on right side of button.

Good Luck

-cheongyh-


0
 

Author Comment

by:MartinD
ID: 1316293
Works fine but:
The last button is not correct displayed.
The Toolbars size is not calculated correctly.

any idea?
0
 

Expert Comment

by:cheongyh
ID: 1316294
Hi,

What is mean "not correct displayed" and "not calculated correctly"?

Give me a some describe your problem.

Best Regards,

-cheongyh-
0
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.

 

Author Comment

by:MartinD
ID: 1316295
Because the Butten with the Arrow is larger then a "normal" button, the most right button of the toolbar is not complete visible.
0
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1316296
After changing toll bar extended style you should send to it TB_AUTOSIZE message to adjust toolbar size
0
 

Expert Comment

by:cheongyh
ID: 1316297
Hi MartinD,

As I think, you has 3 choice of solution for problem.

1. Expand your main window size.
2. Reduce your button width to adjust in frame windows size.
3. Use Pager Control in Common Controls.

I want to description on 3rd method, but I do not know how to use page control. Sorry!

Hope It help.

-cheongyh-

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

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

895 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

16 Experts available now in Live!

Get 1:1 Help Now