Questions tagged [trackpopupmenu]

3 questions
2
votes
2 answers

How to programmatically select popup menu item in Windows?

I have an app that I'm writing a little wizard for. It automated a small part of the app by moving the mouse to appropriate buttons, menus and clicking them so the user can watch. So far it moves the mouse to a tree item and sends a right-click. …
DougN
  • 4,407
  • 11
  • 56
  • 81
0
votes
2 answers

Delay population of a sub menu in Windows and C++

I have an C++ MFC CMenu based context menu object that has several menu items and one menu item is a popup menu (ie has a sub menu). Populating the sub menu is a time intensive process so I don't want to actually populate it until the user clicks on…
snowdude
  • 3,854
  • 1
  • 18
  • 27
0
votes
1 answer

How do I get mnemonics in TrackPopupMenu?

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,…
christopher_f
  • 1,975
  • 1
  • 13
  • 12