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

📄 setflagchardlg.cpp

📁 串口通讯演示程序
💻 CPP
字号:
// SetFlagCharDlg.cpp : implementation file
//

#include "stdafx.h"
#include "CeTools.h"
#include "SetFlagCharDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSetFlagCharDlg dialog


CSetFlagCharDlg::CSetFlagCharDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSetFlagCharDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetFlagCharDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CSetFlagCharDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetFlagCharDlg)
	DDX_Control(pDX, IDC_EDIT1, m_Edit1_Ctrl);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSetFlagCharDlg, CDialog)
	//{{AFX_MSG_MAP(CSetFlagCharDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSetFlagCharDlg message handlers

BOOL CSetFlagCharDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();

	CString str;
	str=AfxGetApp()->GetProfileString(para,_T("FlagChar"),"");
	if(str.GetLength()>0)
		m_Edit1_Ctrl.SetWindowText(str);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CSetFlagCharDlg::OnOK() 
{
	CString str;
	m_Edit1_Ctrl.GetWindowText(str);
	AfxGetApp()->WriteProfileString(para,_T("FlagChar"),str);
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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