I have a win32/MFC application with a context menu that I build programatically:
CPoint pt;
GetMenuPopupPos(&pt);
CAtlString csItem = _T("&Example");
CMenu menu;
menu.CreatePoupMenu();
menu.AppendMenu(MF_STRING, IDM_EXAMPLE_COMMAND, csItem);
menu.TrackPopupMenuEx(TPM_LEFTALIGN|TPM_LEFTBUTTON, pt.x, pt.y, this, NULL);
I've omitted the rest of the menu items for brevity. The menu works, including the keyboard shortcuts, but the problem is that I can't see the underlined shortcuts in the final menu.
This menu has a single entry:
Example
While I would expect the entry (where the bold letter would be underlined).
Example
How do I get the underlines to show up?