acl/app/net_tools/OptionOnClose.cpp

50 lines
982 B
C++
Raw Normal View History

// OptionOnClose.cpp : ʵ<><CAB5><EFBFBD>ļ<EFBFBD>
2014-11-19 00:25:21 +08:00
//
#include "stdafx.h"
#include "net_tools.h"
#include "OptionOnClose.h"
// 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();
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()