Call SetTimer, as you did, then you have to implement an OnTimer override in your window class that will handle the timer event. This is its prototype :
afx_msg void OnTimer( UINT_PTR id );
You also have to add this line to your message map :
ON_WM_TIMER()
Remember that there can be several timers active at once so you should only service the event of interest in your handler - not all of them. That means your handler should look something like this :
void MyWindowClass::OnTimer( UINT_PTR timertId )
{
if( timerId == MyTimerId )
{
}
__super::OnTimer( eventId ); }