irset.cpp
来自「evc开发的基于WINCE3。0的手持打印机的驱动软件」· C++ 代码 · 共 66 行
CPP
66 行
// IRSET.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "IRSET.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CIRSET dialog
CIRSET::CIRSET(int IrFlag, int Baud, CWnd* pParent /*=NULL*/)
: CDialog(CIRSET::IDD, pParent)
{
//{{AFX_DATA_INIT(CIRSET)
TCHAR b[10];
wsprintf(b,TEXT("%d"),Baud);
m_Baud=b;
if(IrFlag=0)
m_Ir_Set = _T("IrComm");
else
m_Ir_Set = _T("RIr");
//}}AFX_DATA_INIT
}
void CIRSET::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CIRSET)
DDX_CBString(pDX, IDC_COMBO1, m_Ir_Set);
DDX_CBString(pDX, IDC_COMBO2, m_Baud);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CIRSET, CDialog)
//{{AFX_MSG_MAP(CIRSET)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CIRSET message handlers
void CIRSET::OnButton1()
{
// TODO: Add your control notification handler code here
CDialog::OnOK();
}
void CIRSET::OnButton2()
{
// TODO: Add your control notification handler code here
CDialog::OnCancel();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?