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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
cheongyhCommented:
Hi,

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

Give me a some describe your problem.

Best Regards,

-cheongyh-
0
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

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
galkinCommented:
After changing toll bar extended style you should send to it TB_AUTOSIZE message to adjust toolbar size
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.