Hi,
When using SetTimer and KillTimer, the MSDN reference for KillTimer says this, "Pending WM_TIMER messages associated with the timer are not removed from the message queue."
How could I flush pending WM_TIMER messages associated with the timer There is no way to remove them from the queue
Thanks,
Jason

Accurate Timer (ON_WM_TIMER) / Pending Timer Queue
mmuncut
You can use PeekMessage with the PM_REMOVE to search for specific WM_TIMER messages for a window, but with this function you have to chance to test the timer id if you have more timer.
Why do you need to remove previously posted timer events. When you set a new timer interval, the current just got trigered. Why shouldn't it execute