Hello,

I've created a MFC based VC++ Dialog application. I set green color as background for the dialog by overriding the OnCtlColor method.

I've three ActiveX Controls( Rounded Rectangle, Rectangle, Line) and i'll move these based on the value i read from the device.

I'm using the following function call to move these controls

::SetWindowPos(<Controlhandle>, HWND_TOP, objLineRect.left ,lMovePos - nCenter, 0, 0, SWP_NOSIZE | SWP_SHOWWINDOW);

These controls are flickering when it is moved from one place to another.
I move these controls 5 times per second.

Please help me how to get rid of the flickering.

Thanks and Regards,
Muthu.