I have placed a gif animation Control(Gif89) in my Dialog based application and in a thread i tried to move the gif's control (with a loaded picture) through the bottom of my Dialog using Move Window() function.A delay of 1ms is introduced between successive calls to move window. I use a timer to communicate with an external device connected to serial port. It takes almost 3 seconds to finish communication. During this time my thread seems to be strucked and gif control is not moved over my main dialog.How can i avoid this?. the code in the thread for moving control is given below int offsetx=0;//65 int offsety=444; int step=0; while(killthread) { m_santa.MoveWindow(offsetx+step,offsety,159,76); Sleep(1); step=step+1; if(offsetx+step>483)//314) step=0; With regards Shibu "Help yourself through helping others"
S
SHIBU K V
@SHIBU K V