Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to add item for xtpControlPopup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add item for xtpControlPopup

 Post Reply Post Reply
Author
Message
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Topic: How to add item for xtpControlPopup
    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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.030 seconds.