Print Page | Close Window

Dropdown Toolbars...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1456
Printed Date: 06 March 2025 at 4:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dropdown Toolbars...
Posted By: ddlittle
Subject: Dropdown Toolbars...
Date 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




Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net