www.pudn.com > NetGuard.rar > BaseOptionDlg.cpp
// BaseOptionDlg.cpp : implementation file
//
#include "stdafx.h"
#include "teen.h"
#include "BaseOptionDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBaseOptionDlg dialog
CBaseOptionDlg::CBaseOptionDlg(UINT nIDTemplate, CWnd* pParentWnd)
: CDialog(nIDTemplate, pParentWnd)
{
//{{AFX_DATA_INIT(CBaseOptionDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_pApplyButton = NULL;
m_bModified = false;
}
void CBaseOptionDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBaseOptionDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CBaseOptionDlg, CDialog)
//{{AFX_MSG_MAP(CBaseOptionDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBaseOptionDlg message handlers
BOOL CBaseOptionDlg::Apply()
{
m_bModified = false;
return FALSE;
}
void CBaseOptionDlg::EnableApply(BOOL bEnable)
{
if(m_pApplyButton)
m_pApplyButton->EnableWindow(bEnable);
if(bEnable)
m_bModified = true;
}
void CBaseOptionDlg::SetApplyButton(CWnd *pButton)
{
m_pApplyButton = pButton;
}