Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - AddSystemButton
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AddSystemButton

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


Joined: 04 January 2008
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote himanshu Quote  Post ReplyReply Direct Link To This Post Topic: AddSystemButton
    Posted: 19 February 2008 at 3:31am

I am using the ribbonbar in my application.

What need to be done apart from adding the below lines to get  file menu
 
CXTPControlPopup* pControlFile = (CXTPControlPopup*)pRibbonBar->AddSystemButton(ID_MENU_FILE);
pControlFile->SetCommandBar(menu.GetSubMenu(0));
pControlFile->GetCommandBar()->SetIconSize(CSize(32, 32));
 
I have added these but not getting the file new,open,save,save as options.
I have add  ID_MENU_FILE in resource.h
 
Thanks
Himanshu
Back to Top
himanshu View Drop Down
Groupie
Groupie


Joined: 04 January 2008
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote himanshu Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2008 at 1:22am
hi
 
any tips for me
 
thanks
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 20 February 2008 at 1:43pm
Did you add ID_MENU_FILE to resources with all new, open, save items ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
himanshu View Drop Down
Groupie
Groupie


Joined: 04 January 2008
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote himanshu Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2008 at 11:42pm
i could not understand what did u mean
 
i have added ID_MENU_FILE to resources but not added

ID_FILE_SAVE,ID_FILE_OPEN to resources.

DO i need to add those in resources too and what else need to be done

thanks
himanshu
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 21 February 2008 at 1:27am
Hi,
 
See IDR_MAINFRAME menu in RibbonSample.rc.
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.141 seconds.