代码拉取完成,页面将自动刷新
// DlgOutDescOpt.cpp : implementation file
//
#include "stdafx.h"
#include "autophs.h"
#include "DlgOutDescOpt.h"
#include "EDIBgbl.h"
#include "modRegistry.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgOutDescOption dialog
CDlgOutDescOption::CDlgOutDescOption(CWnd* pParent /*=NULL*/)
: CDialog(CDlgOutDescOption::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgOutDescOption)
//}}AFX_DATA_INIT
}
void CDlgOutDescOption::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgOutDescOption)
//}}AFX_DATA_MAP
DDX_Check(pDX, IDC_CHECK_PHSPICTURE, EDIBgbl::g_bPhsPicture);
DDX_Check(pDX, IDC_CHECK_PHSSETNUM, EDIBgbl::g_bPhsSetNum);
DDX_Check(pDX, IDC_CHECK_PHSMANUAL, EDIBgbl::g_bPhsManual);
/// DDX_Check(pDX, IDC_CHECK_SYSDESC, EDIBgbl::g_bSysDesc);
DDX_Check(pDX, IDC_CHECK_USERCUSTOM, EDIBgbl::g_bUserDesc);
}
BEGIN_MESSAGE_MAP(CDlgOutDescOption, CDialog)
//{{AFX_MSG_MAP(CDlgOutDescOption)
ON_BN_CLICKED(IDC_CHECK_PHSMANUAL, OnCheckPhsmanual)
ON_BN_CLICKED(IDC_CHECK_PHSSETNUM, OnCheckPhssetnum)
ON_BN_CLICKED(IDC_CHECK_USERCUSTOM, OnCheckUsercustom)
ON_BN_CLICKED(IDC_CHECK_PHSPICTURE, OnCheckPhspicture)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgOutDescOption message handlers
void CDlgOutDescOption::OnCheckPhsmanual()
{
UpdateData();
}
void CDlgOutDescOption::OnCheckPhssetnum()
{
UpdateData();
}
void CDlgOutDescOption::OnCheckUsercustom()
{
UpdateData();
}
void CDlgOutDescOption::OnOK()
{
UpdateData();
SetRegValue(_T("Settings"), _T("Custom_PhsManual"), EDIBgbl::g_bPhsManual);
SetRegValue(_T("Settings"), _T("Custom_PhsPicture"),EDIBgbl::g_bPhsPicture);
SetRegValue(_T("Settings"), _T("Custom_PhsSetNum"), EDIBgbl::g_bPhsSetNum);
// SetRegValue(_T("Settings"), _T("Custom_SysDesc"), EDIBgbl::g_bSysDesc);
SetRegValue(_T("Settings"), _T("Custom_UserDesc"), EDIBgbl::g_bUserDesc);
CDialog::OnOK();
}
BOOL CDlgOutDescOption::OnInitDialog()
{
CDialog::OnInitDialog();
EDIBgbl::g_bPhsManual= GetRegKey(_T("Settings"),_T("Custom_PhsManual"), EDIBgbl::g_bPhsManual);
EDIBgbl::g_bPhsPicture= GetRegKey(_T("Settings"),_T("Custom_PhsPicture"),EDIBgbl::g_bPhsPicture);
EDIBgbl::g_bPhsSetNum= GetRegKey(_T("Settings"),_T("Custom_PhsSetNum"), EDIBgbl::g_bPhsSetNum);
// EDIBgbl::g_bSysDesc= GetRegKey(_T("Settings"),_T("Custom_SysDesc"), EDIBgbl::g_bSysDesc);
EDIBgbl::g_bUserDesc= GetRegKey(_T("Settings"),_T("Custom_UserDesc"), EDIBgbl::g_bUserDesc);
UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CDlgOutDescOption::OnCheckPhspicture()
{
UpdateData();
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。