Print Page | Close Window

Customize menu

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=5904
Printed Date: 04 October 2024 at 5:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Customize menu
Posted By: snir
Subject: Customize menu
Date Posted: 24 December 2006 at 10:01am
Hi,
I'm trying to build a Customize menu. I have my command bar file: MainFrameToolbar.xcb
And i'v looked at the sample code:
void CMainFrame::OnCustomize()
{
CXTPCustomizeSheet cs(GetCommandBars());
CXTPCustomizeCommandsPage* pCommands = cs.GetCommandsPage();
pCommands->AddCategories(IDR_CUSTOMTYPE);
pCommands->InsertAllCommandsCategory();
cs.DoModal();
}
 
But in Add categories:
nIDResource - Menu resource from where categories will be built.
From where do i get nIDResource?? (IDR_CUSTOMTYPE in sample)
I tryed my project IDR_CUSTOMTYPE but AddCategories() returns false.
For now i can get the customize menu but no Commands in the list.
Thank's
 
 


-------------
Thanks,

Snir Yarom
Singleton Technologies Ltd.



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