maneging mouse move
-
Hi. what can I do to maneging mouse move event on buttons. Iman Ghasr-e-fakhri
-
Hi. what can I do to maneging mouse move event on buttons. Iman Ghasr-e-fakhri
What are you asking ? WM_MOUSEMOVE is called when you move the mouse, and WM_LBUTTONDOWN/UP/etc are called when you press a button. To tell if a button is down as the mouse is moved you can use GetAsyncKeyState(VK_LBUTTON). You should call it twice, once to clear the buffer and once to check if it's down now, like so GetAsyncKeyState(VK_LBUTTON); // may return true because it was down since the last check if (GetAsyncKeyState(VK_LBUTTON)) // NOW we can do something Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.