summaryrefslogtreecommitdiff
path: root/NSCmpts/TempWarnDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NSCmpts/TempWarnDlg.cpp')
-rw-r--r--NSCmpts/TempWarnDlg.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/NSCmpts/TempWarnDlg.cpp b/NSCmpts/TempWarnDlg.cpp
new file mode 100644
index 0000000..702519e
--- /dev/null
+++ b/NSCmpts/TempWarnDlg.cpp
@@ -0,0 +1,44 @@
+// TempWarnDlg.cpp : Implementation of CTempWarnDlg
+#include "stdafx.h"
+#include "TempWarnDlg.h"
+
+/////////////////////////////////////////////////////////////////////////////
+// CTempWarnDlg
+
+CTempWarnDlg::CTempWarnDlg(const string& sFolderName)
+ : CDialogImplEx(IDD)
+{
+ m_sFolderName = sFolderName;
+ m_bNotAgain = false;
+}
+
+CTempWarnDlg::~CTempWarnDlg()
+{
+
+}
+
+LRESULT CTempWarnDlg::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
+{
+ string sTemp;
+ sTemp.format(IDS_EMPTYTEMP_WARN, (LPCTSTR)m_sFolderName);
+
+ SetDlgItemText(IDC_FOLDERWARN, sTemp);
+ CheckDlgButton(IDC_DONTSHOW, m_bNotAgain);
+
+ return 1; // Let the system set the focus
+}
+
+LRESULT CTempWarnDlg::OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
+{
+ m_bNotAgain = IsDlgButtonChecked(IDC_DONTSHOW) ? true : false;
+ EndDialog(wID);
+ return 0;
+}
+
+LRESULT CTempWarnDlg::OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
+{
+ m_bNotAgain = IsDlgButtonChecked(IDC_DONTSHOW) ? true : false;
+ EndDialog(wID);
+ return 0;
+}
+