ndb
asked on
SetTimer Function call ...
Is there someone out there who can give me an example of the CListBox.SetTimer(), CListBox.OnTimer() and CListBox.KillTimer()?
These are members of CWnd, the base class of CListBox (and a lot of other classes too, such as CView).
Look for examples of CWnd::SetTimer
Look for examples of CWnd::SetTimer
Typically, the timer is set within the controlling window's message loop and not within the control itself. Then on the OnTimer, you will update the list box accordingly. Otherwise, you'll will have to override the CListBox with a class of your own.
Phillip
Phillip
ASKER
I want to create some kind of buffer. When a user presses a key then a stringbuffer is created related to a timer. That buffer stays active for 1sec and is destroyed again unless the user pressed a key within that 1sec. The the timer is restarted again.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
J.R.