大体こんな感じです
static BOOL timer=FALSE;
if(timer==FALSE)
{
SetTimer(123,500,NULL);
}
MessageBox(NULL,s,"MsgBox",MB_OK);