From 3f95d417d9e623ac0c74df8ef11d7a01846392dd Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 17 Sep 2003 19:07:23 +0000 Subject: Initial Import --- NSCmpts/TempWarnDlg.cpp | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 NSCmpts/TempWarnDlg.cpp (limited to 'NSCmpts/TempWarnDlg.cpp') 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; +} + -- cgit v1.2.3