Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i set the Prompt Property of Menu at Run Time

Status
Not open for further replies.

BEHZADTALA

Programmer
May 28, 2003
43
DE
Hi,
could you tell me How can i set the Prompt Property of Menu
item at Run Time?

thank you,
 
handle OnCommand or WM_COMMAND

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
You override the MainFrame's GetMessageString.
Code:
virtual void GetMessageString(UINT nID, CString& rMessage) const;
and given the nId + some logic of your own, you decide what to output in the rMessage.


IonFilipski>handle OnCommand or WM_COMMAND

The prompt is a result of a WM_SETMESSAGESTRING message, has nothing to do with WM_COMMAND.



/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top