mydlg1.cpp

来自「凌阳单片机的上位机程序」· C++ 代码 · 共 62 行

CPP
62
字号
// MyDlg1.cpp : implementation file
//

#include "stdafx.h"
#include "sample.h"
#include "MyDlg1.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMyDlg1 dialog


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


void CMyDlg1::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMyDlg1)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CMyDlg1 message handlers



void CMyDlg1::OnButton2() 
{
	// TODO: Add your control notification handler code here

	CDialog::OnCancel();
	
}

void CMyDlg1::OnButton1() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
	
}

⌨️ 快捷键说明

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