🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #750

Right Mouse Button + TrackPopupMenu

#750
From: Ken Anderson
Date: Wed, 28 Nov 1990 20:46
17 lines
1032 bytes
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)
---
Technical Details
Message-ID: <586cT3w163w@kasoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!aimed!kasoft!kea

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!aimed!kasoft!kea
From: kea@kasoft.UUCP (Ken Anderson)
Newsgroups: comp.windows.ms.programmer
Subject: Right Mouse Button + TrackPopupMenu
Message-ID: <586cT3w163w@kasoft.UUCP>
Date: 28 Nov 90 20:46:27 GMT
Organization: ChipTools Inc, Mississauga, Canada.
Lines: 17