Sep 16, 2003 #1 BEHZADTALA Programmer Joined May 28, 2003 Messages 43 Location DE Hi, could you tell me How can i set the Prompt Property of Menu item at Run Time? thank you,
Sep 16, 2003 #2 Cagliostro Programmer Joined Sep 13, 2000 Messages 4,226 Location GB handle OnCommand or WM_COMMAND Ion Filipski ICQ: 95034075 AIM: IonFilipski filipski@excite.com Upvote 0 Downvote
Sep 16, 2003 #3 PerFnurt Programmer Joined Feb 25, 2003 Messages 972 Location SE 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 << "My fingers are faster than my brain. Sorry for the typos."; Upvote 0 Downvote
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 << "My fingers are faster than my brain. Sorry for the typos.";