![]()  | 
 
How to Change menu item text | 
 
    Post Reply  
   | 
  
| Author | |
   
   DPDP  
   
   Newbie  
   Joined: 25 August 2005 Status: Offline Points: 14  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: How to Change menu item textPosted: 20 January 2006 at 6:42pm  | 
 
| 
   
    I used to be able to get the CFrameWnd's menu, and change one menu item text from "ABC" to "XYX" as follows CMenu* pMenu = GetMenu(); How should I do using CXTPCommandBars? Thanks,  | 
 |
![]()  | 
 |
   
   Raj.krishnan  
   
   Groupie  
   Joined: 16 January 2006 Status: Offline Points: 44  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 03 April 2006 at 4:53am | 
 
| 
   
    Hi, You need to handle it on ON_UPDATE_COMMAND_UI message for the particlar menu item CCmdUI *pCmdUI will come in this message as argument set the text using pCmdUI->SetText(CString);  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |