Handle left-click on popup menu
-
Hello, I have been searching for this but can't find any answer. I would like my app to be able to handle left-click on popup menu (not menu items). Suppose my menu is: Item 1 Popup > PopupItem1 PopupItem2 Item2 Everybody known how to handle left-click on Item1, Item2, PopupIem1 and PopupItem2. But how can one detect a left-click on the "Popup" item? Is this feasible with a regular CMenu instance? Thanks!
-
Hello, I have been searching for this but can't find any answer. I would like my app to be able to handle left-click on popup menu (not menu items). Suppose my menu is: Item 1 Popup > PopupItem1 PopupItem2 Item2 Everybody known how to handle left-click on Item1, Item2, PopupIem1 and PopupItem2. But how can one detect a left-click on the "Popup" item? Is this feasible with a regular CMenu instance? Thanks!
Nicolas Bonamy wrote:
Everybody known how to handle left-click on Item1, Item2, PopupIem1 and PopupItem2. But how can one detect a left-click on the "Popup" item? Is this feasible with a regular CMenu instance?
Hope I understood you! This is from the documentation...
TPM_LEFTBUTTON
If this flag is set, the user can select menu items with only the left mouse button.TPM_RIGHTBUTTON
If this flag is set, the user can select menu items with both the left and right mouse buttons.
Nibu thomas A Developer Programming tips[^] My site[^]
-
Nicolas Bonamy wrote:
Everybody known how to handle left-click on Item1, Item2, PopupIem1 and PopupItem2. But how can one detect a left-click on the "Popup" item? Is this feasible with a regular CMenu instance?
Hope I understood you! This is from the documentation...
TPM_LEFTBUTTON
If this flag is set, the user can select menu items with only the left mouse button.TPM_RIGHTBUTTON
If this flag is set, the user can select menu items with both the left and right mouse buttons.
Nibu thomas A Developer Programming tips[^] My site[^]
No sorry this is not my point. This will not add a notification if the user clicks on the "Popup" item. This will only change the behavior when clicking on "real" menu items.