Solved

Change Menu Pulldown string?

Posted on 2001-07-25
1
281 Views
Last Modified: 2013-11-20
Hi.
I want to change the strings in a menu programatically.
I have a menu resource that gets loaded by my CFrameWnd.
I figured out how to alter the items in the menu:

* override ::OnCreate() in CFrameWnd
* GetMenu()->ModifyMenu(id,MF_BYCOMMAND|MF_STRING,id,"newstring");

However I do not know how to change the string in the pulldown itself.
(ie: File, Edit, Help, etc)

Does anybody know how to do this?

Thanks.
0
Comment
Question by:bwilhelm
1 Comment
 
LVL 49

Accepted Solution

by:
DanRollins earned 100 total points
ID: 6320361
I think you wnat to modify the text in the menubar.  If so, you need to use positions rather that commands.  For instance, this changes the title of the seconf menu item (usually "&Edit") to "&Whaz UP!"

  GetMenu()->ModifyMenu( 1, MF_BYPOSITION|MF_STRING, 2, "&Whaz UP!" );

-- Dan
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to calculate times for developing software? 8 65
VB.NET how to use the Vertical ScrollBar 5 90
mapBully challenge 6 114
how to split multiple lines delimiter : 8 79
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now