Re: Handle left-click on popup menu
The only thing I've ever done with the popup menu is disable them if none of
the items in the menu is relavent. That's what I originally thought OP
wanted so that's why I posted the code. It doesn't matter if the popup menu
is a sub-menu of a context menu or main menu or whatever.
I'm not sure what else anyone would want to do when the menu is clicked
except:
Disable it
Add items to the menu that is about to popup
Of course OnInitMenuPopup would work for the later and my original post
would work for the former.
Menus are fiesty beasts.
Tom
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:6fshu25pae7h810jebng9evbvme1ku09mc@4ax.com...
Again, quoting the question
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).
InitMenuPopup won't do any good here, directly, What is probably required
is to use
OnMenuSelect to indicate what menu item is being displayed, quite possibly
having to do an
owner-draw to help with this, but in any case setting a flag for a local
hook to intercept
the WM_LBUTTONDOWN handler. This is just a thought, but it would not
produce a natural
interface since users would not be expected left-button-down to have
relevant behavior.
joe