You can use the
CProgressCtrl::SetMarquee[
^] function to activate this style of progress indicator.
This function is only available in Visual Studio 2008 and higher though. For older version you will need to implement it yourself, perhaps by using a timer.