![]() |
Showing Menu for Hidden Toolbar Buttons |
Post Reply
|
| Author | |
g_j_a_i_n
Groupie
Joined: 27 August 2005 Status: Offline Points: 94 |
Post Options
Thanks(0)
Quote Reply
Topic: Showing Menu for Hidden Toolbar ButtonsPosted: 03 November 2005 at 3:28am |
|
I have attached a toolbar ( m_wndToolbar of type CXTPToolBar ) to a floating pane using CreateToolbar and LoadToolBar methods Now, when the pane is resized, some of the toolbar buttons are hidden automatically. I want the hidden toolbar buttons to appear in a context menu. I mean that there must be an extra expand button at the end of the toolbar. If the user clicks on that expand button, the rest of the hidden buttons must appear in a context menu. The expand button appears when the toolbar is attached to Main Frame using GetCommandBars(). But it does not appear when i explicitly create CXTPToolBar object using CreateToolBar and LoadToolBar. I cannot enable bShowExpandButtonAlways flag because m_wndToolbar.GetCommandBars returns NULL. Please help Regards, Gautam Jain |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 November 2005 at 12:07am |
|
Hello, In 9.80 version you can use GetCommandBars for any CWnd derived site. See Advanced sample of it. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |