Re: How to change "File" "Edit" "View" etc in the menu
- From: "Ajay Kalra" <ajaykalra@xxxxxxxxx>
- Date: Tue, 30 Jan 2007 15:16:00 -0500
At run time, you can get the public menu handle (m_hmenuShared) from the
doctemplate and manipulate it the way you want it. Keep in mind that for
MDI, you will need to do this possibly for multiple doctemplates.
--
Ajay Kalra [MVP - VC++]
ajaykalra@xxxxxxxxx
"hamishd" <Hamish.Dean@xxxxxxxxx> wrote in message
news:1169954622.435197.238770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi, how do I change the menus, File, Edit, View, Options, Help?
I do Options like below, but this is easy as I created this menu with
the ID: ID_OPTIONS. But File etcd doesn't have an ID?? So how do I
change them (i want to change the language)?
GetMenu()->ModifyMenu(0, MF_BYPOSITION, ID_FILE ????, _T("FILE"));
GetMenu()->ModifyMenu(3, MF_BYPOSITION, ID_OPTIONS, _T("OPTIONS"));
DrawMenuBar();
Also, how do i change sub-menu items?
Thanks
.
- References:
- How to change "File" "Edit" "View" etc in the menu
- From: hamishd
- How to change "File" "Edit" "View" etc in the menu
- Prev by Date: Re: VC++ 2005 SP 1 CEditView Print Preview Crash
- Next by Date: BUG with RES/SCRIPT/XP-SP2
- Previous by thread: Re: How to change "File" "Edit" "View" etc in the menu
- Next by thread: CDialog background
- Index(es):