⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 proppageauthmodulegeneral.cpp

📁 ftpserver very good sample
💻 CPP
字号:
// PropPageAuthModuleGeneral.cpp : implementation file//#include "stdafx.h"#include "warmmcsnapin.h"#include "PropPageAuthModuleGeneral.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CPropPageAuthModuleGeneral property pageIMPLEMENT_DYNCREATE(CPropPageAuthModuleGeneral, CPropertyPage)CPropPageAuthModuleGeneral::CPropPageAuthModuleGeneral(war_if_aut_module_ptr_t& authPtr) : CPropertyPage(CPropPageAuthModuleGeneral::IDD),mAuthPtr(authPtr){	//{{AFX_DATA_INIT(CPropPageAuthModuleGeneral)	m_bEnable = mAuthPtr->IsEnabled();	m_bAllowAnon = mAuthPtr->GetAuth().IsAnonAllowed();	//}}AFX_DATA_INIT}CPropPageAuthModuleGeneral::~CPropPageAuthModuleGeneral(){}void CPropPageAuthModuleGeneral::DoDataExchange(CDataExchange* pDX){	CPropertyPage::DoDataExchange(pDX);	//{{AFX_DATA_MAP(CPropPageAuthModuleGeneral)	DDX_Check(pDX, IDC_ENABLE, m_bEnable);	DDX_Check(pDX, IDC_ALLOW_ANON, m_bAllowAnon);	//}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CPropPageAuthModuleGeneral, CPropertyPage)	//{{AFX_MSG_MAP(CPropPageAuthModuleGeneral)	ON_BN_CLICKED(IDC_ENABLE, OnEnable)	ON_BN_CLICKED(IDC_ALLOW_ANON, OnChange)	//}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CPropPageAuthModuleGeneral message handlersBOOL CPropPageAuthModuleGeneral::OnInitDialog() {	CPropertyPage::OnInitDialog();	    if (!mAuthPtr->GetAuth().IsAnonSupported())        GetDlgItem(IDC_ALLOW_ANON)->ShowWindow(SW_HIDE);    DoSetStates();		return TRUE;  // return TRUE unless you set the focus to a control	              // EXCEPTION: OCX Property Pages should return FALSE}BOOL CPropPageAuthModuleGeneral::OnApply() {    if (mAuthPtr->GetAuth().IsAnonSupported())	    mAuthPtr->GetAuth().SetEnableAnon(m_bAllowAnon);        mAuthPtr->SetEnable(m_bEnable);		return CPropertyPage::OnApply();}void CPropPageAuthModuleGeneral::DoSetStates(){    GetDlgItem(IDC_ALLOW_ANON)->EnableWindow(m_bEnable);}void CPropPageAuthModuleGeneral::OnEnable() {    UpdateData();	SetModified();    DoSetStates();}void CPropPageAuthModuleGeneral::OnChange() {    SetModified();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -