From: marc on
Hello.

I'd like to determine if my left mouse button is currently pressed or not.
Is there an API to get (read at the current time) the state of the mouse ?
Something like GetMouseState... but not found...

With many thanks
Marc


From: divya_rathore_ on
On May 7, 11:44 am, "marc" <no_s...(a)free.fr> wrote:
> Hello.
>
> I'd like to determine if my left mouse button is currently pressed or not.
> Is there an API to get (read at the current time) the state of the mouse ?
> Something like GetMouseState... but not found...
>
> With many thanks
> Marc

http://msdn.microsoft.com/en-us/library/aa249903(VS.60).aspx
CWnd::OnLButtonDown
From: marc on
Yes of course I know the CWnd::OnLButtonDown message...
What I want is an API function to read the mouse state when I'M NOT INSIDE
AN MOUSE EVENT.

Is somebody have an idea ?
With many thanks.

Marc


"divya_rathore_(a)gmail.com" <divyarathore(a)gmail.com> a �crit dans le message
de news:
07526105-cd8b-4ba2-b2c1-b9f4fd2cbe59(a)p25g2000pri.googlegroups.com...
> On May 7, 11:44 am, "marc" <no_s...(a)free.fr> wrote:
>> Hello.
>>
>> I'd like to determine if my left mouse button is currently pressed or
>> not.
>> Is there an API to get (read at the current time) the state of the mouse
>> ?
>> Something like GetMouseState... but not found...
>>
>> With many thanks
>> Marc
>
> http://msdn.microsoft.com/en-us/library/aa249903(VS.60).aspx
> CWnd::OnLButtonDown


From: M. Shoaib Surya on
Try using GetAsyncKeyState() API call with VK_LBUTTON as the argument.

- Shoaib

"marc" <no_spam(a)free.fr> wrote in message
news:%23VK1Y3AsIHA.420(a)TK2MSFTNGP02.phx.gbl...
> Hello.
>
> I'd like to determine if my left mouse button is currently pressed or not.
> Is there an API to get (read at the current time) the state of the mouse ?
> Something like GetMouseState... but not found...
>
> With many thanks
> Marc
>


From: marc on
Perfect fo me !
Thank you very much.

Marc


"M. Shoaib Surya" <shoaibsurya(a)hotmail.com> a �crit dans le message de news:
u5BoCpBsIHA.3804(a)TK2MSFTNGP02.phx.gbl...
> Try using GetAsyncKeyState() API call with VK_LBUTTON as the argument.
>
> - Shoaib
>
> "marc" <no_spam(a)free.fr> wrote in message
> news:%23VK1Y3AsIHA.420(a)TK2MSFTNGP02.phx.gbl...
>> Hello.
>>
>> I'd like to determine if my left mouse button is currently pressed or
>> not.
>> Is there an API to get (read at the current time) the state of the mouse
>> ?
>> Something like GetMouseState... but not found...
>>
>> With many thanks
>> Marc
>>
>
>