Print Page | Close Window

Split menu button on toolbar

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=2409
Printed Date: 06 October 2024 at 1:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Split menu button on toolbar
Posted By: Jaws
Subject: Split menu button on toolbar
Date Posted: 20 June 2005 at 10:12am

Hi,

I need to add a split button on my toolbar. When I press the drop arrow I need to display a popup menu. My toolbar is on a dialog application.

How can I do it?

Thank you




Replies:
Posted By: Oleg
Date Posted: 21 June 2005 at 2:24pm

As example:

CXTPControlPopup* pControl = (CXTPControlPopup*)m_wndToolBar.GetControls()->SetControl Type(m_wndToolBar.GetControl(3), xtpControlSplitButtonPopup);

pControl->GetCommandBar()->LoadMenu(..)  

 

or

CXTPControlPopup* pControl = (CXTPControlPopup*)m_wndToolBar.GetControls()->Add(xtpCon trolSplitButtonPopup, 100);

pControl->GetCommandBar()->LoadMenu(..)  



-------------
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