Solved

TBSTYLE_EX_DRAWDDARROWS

Posted on 1998-02-17
6
521 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 113
Pressing cancel button with C# UI Automation 3 101
mapBully challenge 6 196
Way to decrease size of apk file 9 129
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

737 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