I have a menu items I creete at run time.
I setup my application to display tooltip for menu items:
CExtPopupMenuWnd::g_eTtsClassicMenu = CExtPopupMenuTipWnd::__ETS_INV_RECTANGLE;
This works fine for menus from resource file. However, when I create the menu item at runtime in the
CExtPopupBaseWnd::g_nMsgPrepareOneMenuLevel
event handler, like this:
pPopup->ItemInsertCommand(ID_COMMAND100, -1, "AAA\nBBB");
it does not display the tooltip (I was expecting to see BBB as a tooltip). I debugged it a little, and it seems that the tooltip is loaded using the command manager, which looks for the menu command string in the string table, which it obviously cannot find for my run-time created commands.
Can you please verify this problem and supply some kind of method to set tip to run-time created commands? If there is already a way to add tooltip to run-time commands, please explain how.
Thanks.