Paul Sharp
April 22nd, 1999, 01:48 PM
I have derived a class from CToolbar that starts
a timer when the leftmouse button is pressed down,
The timer does not work properly, it is supposed to fire after 2 seconds, but it fires immediatley
(2000 mill).
when I run the app in debug mode when I moved the mouse pointer over the toolbar the OnTimer event fired, this must be the mfc source, so I put an if statement in the onTimer function.
if(IdEvent == m_TimerVal)
Even when the the value of m_TimerVal is 0 and the IdEvent is not, it still processes the if statement, when logic say's it shouldnt?
can anyone help.
a timer when the leftmouse button is pressed down,
The timer does not work properly, it is supposed to fire after 2 seconds, but it fires immediatley
(2000 mill).
when I run the app in debug mode when I moved the mouse pointer over the toolbar the OnTimer event fired, this must be the mfc source, so I put an if statement in the onTimer function.
if(IdEvent == m_TimerVal)
Even when the the value of m_TimerVal is 0 and the IdEvent is not, it still processes the if statement, when logic say's it shouldnt?
can anyone help.