ponbox.cpp

来自「蓝牙芯片参数修改程序」· C++ 代码 · 共 64 行

CPP
64
字号
// Ponbox.cpp : implementation file
//

#include "stdafx.h"
#include "BLUE.h"
#include "Ponbox.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPonbox dialog


CPonbox::CPonbox(CWnd* pParent /*=NULL*/)
	: CDialog(CPonbox::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPonbox)
	m_pin = _T("");
	//}}AFX_DATA_INIT
}


void CPonbox::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPonbox)
	DDX_Text(pDX, IDC_EDIT1, m_pin);
	DDV_MaxChars(pDX, m_pin, 123456789);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPonbox, CDialog)
	//{{AFX_MSG_MAP(CPonbox)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPonbox message handlers
CString pin1;
void CPonbox::OnButton1() 
{
	// TODO: Add your control notification handler code here
	UpdateData();
	pin1 = m_pin;
	OnOK();
	
}

void CPonbox::OnButton2() 
{
	// TODO: Add your control notification handler code here
	UpdateData();
	pin1 = m_pin;
	OnCancel();
	//return;
}

⌨️ 快捷键说明

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