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

Customize menu

 Post Reply Post Reply
Author
Message
snir View Drop Down
Newbie
Newbie
Avatar

Joined: 09 March 2006
Location: Israel
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote snir Quote  Post ReplyReply Direct Link To This Post Topic: Customize menu
    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.
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.125 seconds.