+void wxGauge::SetIndeterminateMode()
+{
+ // Switch the control into indeterminate mode if necessary.
+ if ( !IsInIndeterminateMode() )
+ {
+ const long style = ::GetWindowLong(GetHwnd(), GWL_STYLE);
+ ::SetWindowLong(GetHwnd(), GWL_STYLE, style | PBS_MARQUEE);
+ ::SendMessage(GetHwnd(), PBM_SETMARQUEE, TRUE, 0);
+ }