Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error compiling call to Windows API function. Pin
David Crow31-Mar-09 3:17
David Crow31-Mar-09 3:17 
Questionerror that is occuring while executing the project Pin
kir_MFC31-Mar-09 2:54
kir_MFC31-Mar-09 2:54 
AnswerRe: error that is occuring while executing the project Pin
Chandrasekharan P31-Mar-09 3:12
Chandrasekharan P31-Mar-09 3:12 
GeneralRe: error that is occuring while executing the project Pin
kir_MFC31-Mar-09 3:38
kir_MFC31-Mar-09 3:38 
QuestionRe: error that is occuring while executing the project Pin
David Crow31-Mar-09 3:53
David Crow31-Mar-09 3:53 
QuestionHelp with Mouse Button and counter Pin
Member 23626231-Mar-09 1:33
Member 23626231-Mar-09 1:33 
AnswerRe: Help with Mouse Button and counter Pin
Rajesh R Subramanian31-Mar-09 1:37
professionalRajesh R Subramanian31-Mar-09 1:37 
AnswerRe: Help with Mouse Button and counter Pin
Cedric Moonen31-Mar-09 1:40
Cedric Moonen31-Mar-09 1:40 
You didn't say anything about the counter "sensitivity". If you implemented something more or less similar as what you did, your counter would reach an extremely high value in a few miliseconds. What would be the point ? Furthermore it would totally depends on the speed of the computer on which your program is running. Do you need to increase your counter every second ?

Once you defined your sensitivity, you can simply create a timer that fires at your sensitivity rate. You start your timer when the button is pressed and you kill the timer (and display your counter if needed) when the mouse button is released. When the timer fires, you simply increase your counter.

EDIT: by looking at the answer of Rajesh, I'm not sure I understood your question properly. Do you want to count the number of times the user clicks the mouse or do you want to increase your counter while the mouse button is down ? I understood the second one.

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

GeneralRe: Help with Mouse Button and counter Pin
Rajesh R Subramanian31-Mar-09 2:31
professionalRajesh R Subramanian31-Mar-09 2:31 
Joke[OT] Re: Help with Mouse Button and counter Pin
David Crow31-Mar-09 3:26
David Crow31-Mar-09 3:26 
GeneralRe: Help with Mouse Button and counter Pin
Luc Pattyn31-Mar-09 5:09
sitebuilderLuc Pattyn31-Mar-09 5:09 
GeneralRe: Help with Mouse Button and counter Pin
Rajesh R Subramanian31-Mar-09 20:56
professionalRajesh R Subramanian31-Mar-09 20:56 
GeneralRe: Help with Mouse Button and counter Pin
Member 23626231-Mar-09 4:06
Member 23626231-Mar-09 4:06 
GeneralRe: Help with Mouse Button and counter Pin
Luc Pattyn31-Mar-09 5:12
sitebuilderLuc Pattyn31-Mar-09 5:12 
AnswerRe: Help with Mouse Button and counter Pin
Iain Clarke, Warrior Programmer31-Mar-09 1:46
Iain Clarke, Warrior Programmer31-Mar-09 1:46 
GeneralRe: Help with Mouse Button and counter Pin
Member 2362621-Apr-09 3:06
Member 2362621-Apr-09 3:06 
Questionfatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h></windows.h> Pin
Le@rner30-Mar-09 23:41
Le@rner30-Mar-09 23:41 
AnswerRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 0:07
professionalStuart Dootson31-Mar-09 0:07 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Le@rner31-Mar-09 0:51
Le@rner31-Mar-09 0:51 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 0:57
professionalStuart Dootson31-Mar-09 0:57 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Le@rner31-Mar-09 0:59
Le@rner31-Mar-09 0:59 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 1:06
professionalStuart Dootson31-Mar-09 1:06 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Rajesh R Subramanian31-Mar-09 2:34
professionalRajesh R Subramanian31-Mar-09 2:34 
QuestionHow to create a listbox in win32 with checkbox style Pin
nbugalia30-Mar-09 22:52
nbugalia30-Mar-09 22:52 
AnswerRe: How to create a listbox in win32 with checkbox style Pin
Iain Clarke, Warrior Programmer30-Mar-09 23:14
Iain Clarke, Warrior Programmer30-Mar-09 23:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.