WTL::CUpDownCtrl spinCtrl = GetDlgItem( IDC_SPIN ); spinCtrl.SetPos32( 0 ); spinCtrl.SetRange32( 0, INT_MAX );