Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Change Menu Pulldown string?

Posted on 2001-07-25
1
Medium Priority
?
294 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 400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

810 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