Solved

TBSTYLE_EX_DRAWDDARROWS

Posted on 1998-02-17
6
495 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

10 Experts available now in Live!

Get 1:1 Help Now