mfc >> State of mouse buttons from anywhere

by WWFzb28 » Sat, 24 Apr 2004 08:36:02 GMT

Is there a structure containing the current state of the mouse buttons?

mfc >> State of mouse buttons from anywhere

by Joseph M. Newcomer » Sun, 25 Apr 2004 14:15:08 GMT

No. However, GetAsyncKeyState has virtual key codes that query the mouse button status.

Joseph M. Newcomer [MVP]
MVP Tips:

mfc >> State of mouse buttons from anywhere

by WWFzb28 » Mon, 26 Apr 2004 00:21:02 GMT

Cool. Thanks Joe.

Similar Threads

1. check left mouse button state anywhere on the screen

I think none of the WM messages let me check the mouse button outside
the application window.

If anyone knows how to do it, please let me know how.

Thank you.

2. Mouse, is there way of reading mouse button state without relying on event - CSharp/C#

3. Getting the State of a Mouse Button

I need to know if the Left Button of the Mouse is clicked in the
WM_NCMOUSEMOVE Notification but this Message doesnt 
contain the Mouse Button States as WM_MOUSEMOVE does.
So how can I get them?


4. Event for mouse movement anywhere on screen? - CSharp/C#

5. Receiving mouse click from anywhere on the desktop

Receiving mouse click from anywhere on the desktop. Then using
mouse_event to generate a mouse click in the same location.

I have made the code to use mouse_event to generate a click anywhere on
the screen but would like some information on capturing mouse clicks
outside of the application its running in. IE any click, anywhere on
the screen. Using C# of course...

Any help is appreciated. THANKs

6. setting visual state of a button when button does not have focus

7. Is there a free toolbar button library available anywhere

I am looking for a cataloged of typically 15x16 images for use on

Does a free public collection of these exist?

8. Mouse down event not firing for left mouse button - Borland C++ Builder VCL Components