![]() |
How to add item for xtpControlPopup |
Post Reply
|
| Author | |
yanlv
Groupie
Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Topic: How to add item for xtpControlPopupPosted: 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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |