Dynamically change menu text 
Author Message
 Dynamically change menu text

Hi,

I need to change the text of a particular menu item during runtime.
There is a function to get the text of an item but not one to change the
text of it.  I tried to use SetWindowText but I don't think the menu
items are CWnd types.

Thanks



Sat, 04 Dec 2004 02:58:45 GMT  
 Dynamically change menu text
Try CMenu::ModifyMenu

--
Adam Clauss


Quote:
> Hi,

> I need to change the text of a particular menu item during runtime.
> There is a function to get the text of an item but not one to change the
> text of it.  I tried to use SetWindowText but I don't think the menu
> items are CWnd types.

> Thanks



Sat, 04 Dec 2004 03:10:41 GMT  
 Dynamically change menu text
The same mechanism that is typically used to enable/disable menu items in
MFC can be used to change the text.  Look at CCmdUI::SetText();

TFM3

Note: Spam-resistant e-mail address


Quote:
> Hi,

> I need to change the text of a particular menu item during runtime.
> There is a function to get the text of an item but not one to change the
> text of it.  I tried to use SetWindowText but I don't think the menu
> items are CWnd types.

> Thanks



Sat, 04 Dec 2004 08:15:22 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Dynamically changing text of a menu in a Dialog box

2. URGENT! Dynamically change File menu text

3. Dynamically setting menu text

4. Dynamically change a menu label

5. Dynamically changing menu in MDI app

6. Dynamically change caption of a menu

7. Dynamically changing the menu

8. @@@ Dynamically change IE4 menu/toolbar?

9. Dynamically changing top-level menu in SDI app?

10. MDI Menus - how to change dynamically?

11. Dynamically changing menus in an MDI application

12. dynamically changing MDI MainFrame menu

 

 
Powered by phpBB® Forum Software