dlgsub_base.cpp

来自「一个器材管理系统界面」· C++ 代码 · 共 60 行

CPP
60
字号
// dlgSub_Base.cpp : implementation file
//

#include "stdafx.h"
#include "EquipManage2.h"
#include "dlgSub_Base.h"

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

/////////////////////////////////////////////////////////////////////////////
// dlgSub_Base dialog


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


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


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

/////////////////////////////////////////////////////////////////////////////
// dlgSub_Base message handlers

void dlgSub_Base::OnButton1() 
{
	// TODO: Add your control notification handler code here
	  this->ShowWindow(SW_HIDE);
	  AfxMessageBox("信息初始化完毕");
}

void dlgSub_Base::OnButton2() 
{
	this->ShowWindow(SW_HIDE);
	
	dlgBaseInfoAdd tdlgBaseInfoAdd;
    tdlgBaseInfoAdd.DoModal();	
}

⌨️ 快捷键说明

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