المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Help with Mouse Button and counter



C++ Programming
03-31-2009, 03:40 PM
I'm using Visual C++ and Windows XP
I would like to continuously increment a counter when the left mouse button is down, and then display the number of counts. The basic logic I'm trying to implement is:
count = 0;
while (left_mouse_button_down) count++;

It isn't clear to me how to do something like this in the Windows environment. Any insights would be greatly appreciated.
Thanks David!