Re: SS_NOTIFY and mouse clicks

new topic     » goto parent     » topic index » view thread      » older message » newer message

Andy Drummond wrote:
> 
> This is a multi-part message in MIME format.
> 
> ------=_NextPart_000_0004_01C4C597.DB8C11E0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: 8bit
> 
> I am using static controls with the SS_NOTIFY style to draw myself some fancy
> special
> controls.
> It works fine but I get a w2HClick handler call for both the "click" and
> "unclick"
> events, 

What's an "unclick" event? A click event is a combination of Mousedown
followed by MouseUp, within the double-click period, and within a few
pixels of each other.

By "click" are you meaning the MouseDown event and "unclick" the mouse UP
event? If so, set you hander for w32HMouse events and watch for Down/Up
events for the left and/or right button.


>and I can't find any way to differentiate one from the other. I am using a
> simple toggle which is not far off what I want but it is pretty easy to fool
> it.
> Can anyone tell me either how to respond only to "click" events or to tell if
> the mouse
> button is down or up? I have looked in the Win32Lib docs but can't find either
> ....


-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu