TBSTYLE_EX_DRAWDDARROWS

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
MartinDAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
galkinConnect With a Mentor Commented:
After changing toll bar extended style you should send to it TB_AUTOSIZE message to adjust toolbar size
0
 
cheongyhCommented:
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
 
MartinDAuthor Commented:
Works fine but:
The last button is not correct displayed.
The Toolbars size is not calculated correctly.

any idea?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
cheongyhCommented:
Hi,

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

Give me a some describe your problem.

Best Regards,

-cheongyh-
0
 
MartinDAuthor Commented:
Because the Butten with the Arrow is larger then a "normal" button, the most right button of the toolbar is not complete visible.
0
 
cheongyhCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.