Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How can I change the prompt of the popup menu?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I change the prompt of the popup menu?

 Post Reply Post Reply
Author
Message
PilotEdit View Drop Down
Newbie
Newbie
Avatar

Joined: 07 April 2009
Location: China
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote PilotEdit Quote  Post ReplyReply Direct Link To This Post Topic: How can I change the prompt of the popup menu?
    Posted: 07 April 2009 at 4:23am
Hi,
 
I am trying to show a popup menu with the code below:
 
  CMenu menu;
  VERIFY(menu.LoadMenu(IDR_POP_TAB));
  CMenu* pPopup = menu.GetSubMenu(0);
  m_MTIClientWnd.WorkspaceToScreen(&point);
  CXTPCommandBars::TrackPopupMenu(pPopup, 0, point.x, point.y, this);
 
But I don't know how can I change the prompt (the message shown in the status bar) of the pop up menu.
How can I set the prompt of the popup menu?
 
Thank you
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2009 at 12:55am
Hi,
 
In string table (resource page) add description for Ids you have in this menu.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
PilotEdit View Drop Down
Newbie
Newbie
Avatar

Joined: 07 April 2009
Location: China
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote PilotEdit Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2010 at 10:53am
Originally posted by oleg oleg wrote:

Hi,
 
In string table (resource page) add description for Ids you have in this menu.

How can I change it dynamically? (While the program is running.)

Thank you
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2010 at 4:26pm
Handle WM_XTP_INITCOMMANDSPOPUP then modify the controls manually by setting tips etc. See samples\commandbars\notifications in the CJ sdk.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.