step1.cpp

来自「用VC 语言编写可以任意改变按钮的形状和颜色」· C++ 代码 · 共 56 行

CPP
56
字号
// Step1.cpp : implementation file
//

#include "stdafx.h"
#include "CustomWizard.h"
#include "Step1.h"

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

/////////////////////////////////////////////////////////////////////////////
// CStep1 dialog


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


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


BEGIN_MESSAGE_MAP(CStep1, CDialog)
	//{{AFX_MSG_MAP(CStep1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	ON_BN_CLICKED(IDC_TEST, OnTest)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CStep1 message handlers

void CStep1::OnButton2() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnOK();
}

void CStep1::OnTest() 
{
	AfxMessageBox("test");
}

⌨️ 快捷键说明

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