Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Dominik Braendlin
|
Nov 28, 2007 - 5:34 AM
|
Dear Tech Support I create dynamic popup menus using OnExtMenuPrepare(WPARAM wParam, LPARAM lParam) and then pMenu->ItemInsertCommand(… In my void CMainFrame::OnScriptMenuItems(UINT nID) function I need to get the menu text. Is there a way to get that menu text by using the nID? Regards, Adrian
|
|
Dominik Braendlin
|
Nov 29, 2007 - 11:58 PM
|
Std::map – that’s how I did it so far. I see, there is no way to read it back from the menu item using the nID.
Adrian
|
|
Technical Support
|
Nov 29, 2007 - 2:17 PM
|
You can remember the menu items you inserted into a menu in some CMap or std::map map object where command identifiers are used as key values and menu item text strings as mapped values.
|
|