|
-
Oct 24th, 2001, 02:37 AM
#1
Thread Starter
Junior Member
Right mouse double click
Experts,
How do you prevent a person clicking the right mouse button in quick succession from being interpreted by Visual
Basic as a double-click?
Who programmed this screwy querk into Visual Basic functionality anyway? Other Windows programs don't interpret two quick right mouse clicks as a 'double-click'.
Thank you!
-
Oct 24th, 2001, 06:30 AM
#2
Fanatic Member
I think that's not how VB handles it, but how Windows handles it. Seems logical to me, how else do you want to be able to detect double-clicks?
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Oct 24th, 2001, 03:04 PM
#3
Thread Starter
Junior Member
"Right mouse" double-clicks
What? "Right mouse" double-clicks. Try to double-click your right mouse button anywhere and it wont produce a double-click effect...only the left mouse button does that--except in Visual Basic?
How can you say right mouse double-clicks make sense?
-
Oct 25th, 2001, 12:08 PM
#4
Fanatic Member
Well, here's the reason why it makes sense: 
(straight from the Win32 SDK)
The WM_RBUTTONDBLCLK message is posted when the user double-clicks the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|