[comp.windows.ms.programmer] Right Mouse Button + TrackPopupMenu

kea@kasoft.UUCP (Ken Anderson) (11/29/90)

I've tried every combination I can think of...

Here's the problem: SAA/CUA suggests that you leave the Left mouse
button for interface things, and use the Right button for your app.

So I figure I'll use the RIght mouse to Popup a local menu based on the context
of where the mouse is.. Ok. TrackPopupMenu works fine, but it expects the
LEFT button to work it. Grrr.... Aha! I use SwapMouseButton and away I go...

But no - the Right Button must be released and re-pressed to invoke the menu
selector (ie. dragging doesn't work). I've tried PostMessage to fake out a
Left/Right button press/release, but nothing works.

Anyone know the trick??
-- 
Ken Anderson, kea@kasoft.UUCP, 416-274-6244 (fax:416-891-2715)
---