Discussion:
TrackPopupMenu: allow selecting multiple items before closing?
(too old to reply)
Arno
2010-03-29 10:45:57 UTC
Permalink
Raw Message
Hello,

I have items with checkmarks in my menu of which people want to toggle
multiple before dismissing the popup menu by clicking outside of it.
Is there a way to tell TrackPopupMenu to send WM_COMMANDs, but keep
the menu open? Calling TrackPopupMenu again does not do it. The
checkmark items are in a submenu.

TIA,

Arno
David Lowndes
2010-03-29 10:52:55 UTC
Permalink
Raw Message
Post by Arno
I have items with checkmarks in my menu of which people want to toggle
multiple before dismissing the popup menu by clicking outside of it.
Is there a way to tell TrackPopupMenu to send WM_COMMANDs, but keep
the menu open? Calling TrackPopupMenu again does not do it. The
checkmark items are in a submenu.
Not as far as I'm aware. I don't recall ever seeing a Windows
application that behaves that way either.

Perhaps what you need is better served by a dialog box?

Dave
Jean-Christophe
2010-03-31 23:14:47 UTC
Permalink
Raw Message
On 29 mar, 11:45, Arno

Never heard of this. But you can re-open the menu as soon as
the user has selected one of its entries, to allow multiple-
selections.
A better way to do this would be to call a simple dialogbox with check-
boxes ...
Post by Arno
Hello,
I have items with checkmarks in my menu of which people want to toggle
multiple before dismissing the popup menu by clicking outside of it.
Is there a way to tell TrackPopupMenu to send WM_COMMANDs, but keep
the menu open? Calling TrackPopupMenu again does not do it. The
checkmark items are in a submenu.
TIA,
Arno
Loading...