|
Prev: list of vc6 preprocessor switches?
Next: Difference between private bytes and Virtual bytes in Performance Monitor tool
From: marc on 7 May 2008 02:44 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 7 May 2008 03:30 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 7 May 2008 03:39 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 7 May 2008 04:06 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 7 May 2008 05:33
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 >> > > |