Print Page | Close Window

AddSystemButton

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=9625
Printed Date: 05 July 2024 at 10:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AddSystemButton
Posted By: himanshu
Subject: AddSystemButton
Date 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



Replies:
Posted By: himanshu
Date Posted: 20 February 2008 at 1:22am
hi
 
any tips for me
 
thanks


Posted By: Oleg
Date 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


Posted By: himanshu
Date 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


Posted By: Oleg
Date Posted: 21 February 2008 at 1:27am
Hi,
 
See IDR_MAINFRAME menu in RibbonSample.rc.


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