⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 start.cpp

📁 一个有VC++开发的计算建筑工程行业软件 可以计算挖孔桩的方量,方格网的计算,支持保存和加载数据
💻 CPP
字号:
// START.cpp : implementation file
//

#include "stdafx.h"
#include "TitleBar.h"
#include "START.h"
#include "TitleBarDlg.h"
#include "DLGFGW.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSTART dialog


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


void CSTART::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSTART)
	DDX_Control(pDX, IDOK, m_btnok);
	DDX_Control(pDX, IDC_BTNWKZ, m_btnwkz);
	DDX_Control(pDX, IDC_BTNFGW, m_btnfgw);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSTART, CDialog)
	//{{AFX_MSG_MAP(CSTART)
	ON_BN_CLICKED(IDC_BTNWKZ, OnBtnwkz)
	ON_BN_CLICKED(IDC_BTNFGW, OnBtnfgw)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSTART message handlers

BOOL CSTART::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_btnfgw.SubclassDlgItem(IDI_NEXT1, this);
    m_btnfgw.SetIcon(IDI_NEXT2, IDI_NEXT1); // 32x32 图标	
	m_btnwkz.SubclassDlgItem(IDI_NEXT1, this);
    m_btnwkz.SetIcon(IDI_NEXT2, IDI_NEXT1); // 32x32 图标
	m_btnok.SubclassDlgItem(IDI_EXET1, this);
    m_btnok.SetIcon(IDI_EXIT2, IDI_EXET1); // 32x32 图标	

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CSTART::OnBtnwkz() 
{
	CTitleBarDlg dlg;
	int nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}

	
}

void CSTART::OnBtnfgw() 
{	
	CDLGFGW dlg;
	int nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}
	
}

⌨️ 快捷键说明

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