Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Dropdown Toolbars...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dropdown Toolbars...

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: Dropdown Toolbars...
    Posted: 24 November 2004 at 10:16pm

I want a toolbar button to dropdown another toolbar, but I can't figure out the style to set to get it to work.  It should be easy -- there's screen shots all over codejock.com -- I just can't make it work.

Which sample should I look at to see how it's done?

 

Thanks!

- David Little
- Houston, TX

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 25 November 2004 at 1:15am

Check for example TearOffPopups sample.

You need to catch OnCreateControl event and create popup control:

  CXTPControlPopup* pPopup = new CXTPControlPopup();

  CXTPPopupToolBar* pPopupBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars());
  pPopupBar->LoadToolBar(IDR_MAINFRAME);
  pPopupBar->SetWidth(200);
  
  pPopup->SetCommandBar(pPopupBar);
  pPopupBar->InternalRelease();
  

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.141 seconds.