Print Page | Close Window

How to add item for xtpControlPopup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11527
Printed Date: 15 September 2025 at 1:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add item for xtpControlPopup
Posted By: yanlv
Subject: How to add item for xtpControlPopup
Date Posted: 21 July 2008 at 11:36pm
I want to achieve a similar toolbar xtpControlPopup with the sample:
Xtreme ToolkitPro v11.1.0\Samples\CommandBars\CustomThemes
In this sample, below the popup toolbar Custom Themes, there are seven items: icy, mac, ..., acd. These items are manually added in .rc file. I hope to add them in the mainfrm.cpp. i.e., just add some codes after:
        if (lpCreateControl->nID == ID_THEME_CUSTOM)
        {
            lpCreateControl->buttonStyle = xtpButtonIconAndCaption;
            lpCreateControl->controlType = xtpControlPopup;
How to? Thanks you very much.




Replies:
Posted By: Oleg
Date Posted: 22 July 2008 at 1:06am
Hi,
Create CXTPControlPopup, add items and return it
 
Check block
"if (lpCreateControl->nID == ID_BUTTONSTYLE && pToolBar->GetBarID() == IDR_CUSTOM)"  in same sample.


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