![]() |
Customize menu |
Post Reply ![]() |
Author | |
snir ![]() Newbie ![]() ![]() Joined: 09 March 2006 Location: Israel Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
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 |