2019-07-28 10:31:56 +08:00
|
|
|
|
// OptionOnClose.cpp : ʵ<><CAB5><EFBFBD>ļ<EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "net_tools.h"
|
|
|
|
|
#include "OptionOnClose.h"
|
|
|
|
|
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// COptionOnClose <20>Ի<EFBFBD><D4BB><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
IMPLEMENT_DYNCREATE(COptionOnClose, CDialog)
|
|
|
|
|
|
|
|
|
|
COptionOnClose::COptionOnClose(CWnd* pParent /*=NULL*/)
|
|
|
|
|
: CDialog(COptionOnClose::IDD, pParent)
|
|
|
|
|
, m_MinOnClose(TRUE)
|
|
|
|
|
, m_QuitClose(!m_MinOnClose)
|
|
|
|
|
, m_SaveOption(FALSE)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
COptionOnClose::~COptionOnClose()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COptionOnClose::init(BOOL QuitOnClose)
|
|
|
|
|
{
|
|
|
|
|
m_QuitClose = QuitOnClose;
|
|
|
|
|
m_MinOnClose = !QuitOnClose;
|
|
|
|
|
//UpdateData(FALSE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COptionOnClose::DoDataExchange(CDataExchange* pDX)
|
|
|
|
|
{
|
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
|
DDX_Check(pDX, IDC_QUIT_NO, m_MinOnClose);
|
|
|
|
|
DDX_Check(pDX, IDC_QUIT_YES, m_QuitClose);
|
|
|
|
|
DDX_Check(pDX, IDC_CHECK_SAVE, m_SaveOption);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL COptionOnClose::OnInitDialog()
|
|
|
|
|
{
|
|
|
|
|
CDialog::OnInitDialog();
|
2019-07-28 10:31:56 +08:00
|
|
|
|
return TRUE; // <20><><EFBFBD>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD><C3B5>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> TRUE
|
2014-11-19 00:25:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(COptionOnClose, CDialog)
|
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
|