Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Showing Menu for Hidden Toolbar Buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Showing Menu for Hidden Toolbar Buttons

 Post Reply Post Reply
Author
Message
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Topic: Showing Menu for Hidden Toolbar Buttons
    Posted: 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



 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.049 seconds.