How to modify the pop-up menu caption dynamicly?
-
For instance: I want to implic the function :When i Rbuttondown the dialog,there is a pop-up menu.if the pop-up menu caption is "stretch",it can change to "shrink" when clicked. Thx advance!
Where did the good times go? Don't try it, just do it! *Archibald*rever dragon!
-
For instance: I want to implic the function :When i Rbuttondown the dialog,there is a pop-up menu.if the pop-up menu caption is "stretch",it can change to "shrink" when clicked. Thx advance!
Where did the good times go? Don't try it, just do it! *Archibald*rever dragon!
In MFC you can use ModifyMenu (or SetMenuItemInfo for Win32 api): ModifyMenu( MF_BYPOSITION, MF_STRING, indexOfYourMenuItem, "shrink" ); ModifyMenu( MF_BYCOMMAND, MF_STRING, ID_YOURMENUITEM, "shrink" ); See here for more info: http://msdn2.microsoft.com/en-us/library/89c2aa4b(VS.80).aspx[^]
- S 50 cups of coffee and you know it's on!