m_Animate.Stop();\r
m_Progress.SetPos(100);\r
this->DialogEnableWindow(IDOK,TRUE);\r
+\r
if(wParam == MSG_PROGRESSDLG_END && m_GitStatus == 0)\r
{\r
if(m_bAutoCloseOnSuccess)\r
EndDialog(IDOK);\r
+\r
if(!m_changeAbortButtonOnSuccessTo.IsEmpty())\r
{\r
GetDlgItem(IDCANCEL)->SetWindowText(m_changeAbortButtonOnSuccessTo);\r
+ //Set default button is "close" rather than "push"\r
+ this->SendMessage(WM_NEXTDLGCTL, (WPARAM)GetDlgItem(IDOK)->m_hWnd, TRUE);\r
}\r
else\r
DialogEnableWindow(IDCANCEL, FALSE);\r