Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tutorial Recommendations Pin
Roger Wright5-Dec-03 10:12
professionalRoger Wright5-Dec-03 10:12 
GeneralRe: Tutorial Recommendations Pin
Jörgen Sigvardsson5-Dec-03 14:04
Jörgen Sigvardsson5-Dec-03 14:04 
Questionwait methods!!!? Pin
mitil203904823045-Dec-03 6:55
mitil203904823045-Dec-03 6:55 
AnswerRe: wait methods!!!? Pin
Joe Woodbury5-Dec-03 20:51
professionalJoe Woodbury5-Dec-03 20:51 
GeneralFunction Question Pin
Nitron5-Dec-03 6:36
Nitron5-Dec-03 6:36 
GeneralRe: Function Question Pin
Ivor S. Sargoytchev5-Dec-03 9:01
Ivor S. Sargoytchev5-Dec-03 9:01 
GeneralStartbar Message Monitoring Pin
Zero_divide_15-Dec-03 6:15
Zero_divide_15-Dec-03 6:15 
QuestionDynamic compact/extended toolbar? Pin
johannks5-Dec-03 5:09
johannks5-Dec-03 5:09 
Hello there

I was wondering if there is anybody who could help me out, or point me in the right direction on the following issue:

I would like to implement a toolbar that changes dynamically between a compact and an extended mode, depending on where the user decides to dock the toolbar.

In my app I the user can choose a number of different objects to draw in a window, to delete the selected one, and to delete them all.

This toolbar is currently implemented with an initial dropdown menu toolbutton that contains all the objects (with a default when just the button is clicked), and the two toolbar buttons for delete selected, and delete all. This is exactly the functionality that I am looking for when the toolbar is horizontally docked (i.e. top or bottom). (This compact mode would in my case contain three buttons.)

What I am (unsuccessfully) trying to implement, is for this compact toolbar to dynamically change to an extended toolbar, if the user chooses to dock it vertically. This extended toolbar would - instead of the dropdown menu - contain all the different objects on individual buttons (ideally with separators where the menu has separators), with the two delete buttons at the end (i.e. bottom). (This extended mode would in my case contain nObjectCount + 2 buttons.)

(Have I made my problem clear enough???)

Does anybody know how to detect that the toolbar docking state is changing and how to dynamically add, delete or hide buttons?

/jnks
AnswerRe: Dynamic compact/extended toolbar? Pin
Roger Allen5-Dec-03 5:16
Roger Allen5-Dec-03 5:16 
AnswerRe: Dynamic compact/extended toolbar? Pin
Roger Allen5-Dec-03 5:21
Roger Allen5-Dec-03 5:21 
GeneralRe: Dynamic compact/extended toolbar? Pin
johannks5-Dec-03 5:48
johannks5-Dec-03 5:48 
GeneralRe: Dynamic compact/extended toolbar? Pin
johannks5-Dec-03 6:10
johannks5-Dec-03 6:10 
GeneralCTabCtrl is hiding my static text Pin
SteveLoGalbo5-Dec-03 4:26
SteveLoGalbo5-Dec-03 4:26 
Question: MFC articles/demos/srcs on DVD or CD? Pin
ns5-Dec-03 4:03
ns5-Dec-03 4:03 
AnswerRe: : MFC articles/demos/srcs on DVD or CD? Pin
RChin5-Dec-03 5:18
RChin5-Dec-03 5:18 
AnswerRe: : MFC articles/demos/srcs on DVD or CD? Pin
Ravi Bhavnani5-Dec-03 6:39
professionalRavi Bhavnani5-Dec-03 6:39 
GeneralRe: : MFC articles/demos/srcs on DVD or CD? Pin
ns5-Dec-03 7:48
ns5-Dec-03 7:48 
GeneralTabCtrl + Windows XP-Style Pin
mortal5-Dec-03 3:51
mortal5-Dec-03 3:51 
GeneralRe: TabCtrl + Windows XP-Style Pin
Joel Lucsy5-Dec-03 9:21
Joel Lucsy5-Dec-03 9:21 
GeneralRe: TabCtrl + Windows XP-Style Pin
mortal5-Dec-03 20:01
mortal5-Dec-03 20:01 
GeneralRe: using classes in different directory Pin
Maximilien5-Dec-03 3:21
Maximilien5-Dec-03 3:21 
GeneralRe: using classes in different directory Pin
Anonymous5-Dec-03 4:36
Anonymous5-Dec-03 4:36 
GeneralEscapecommunication(SETBRK) Pin
Adi Narayana5-Dec-03 2:44
Adi Narayana5-Dec-03 2:44 
GeneralRe: Escapecommunication(SETBRK) Pin
Roger Wright5-Dec-03 9:23
professionalRoger Wright5-Dec-03 9:23 
Generalusing classes in different directory Pin
hdaly5-Dec-03 2:13
hdaly5-Dec-03 2:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.