datastructuredlg.cpp

来自「故障诊断工作涉及的领域相当广泛」· C++ 代码 · 共 67 行

CPP
67
字号
// datastructuredlg.cpp : implementation file
//

#include "stdafx.h"
#include "richtest.h"
#include "datastructuredlg.h"
#include "datastructure.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// datastructuredlg dialog


datastructuredlg::datastructuredlg(datastructure* pds,int which,CWnd* pParent /*=NULL*/)
	: CDialog(datastructuredlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(datastructuredlg)
		// NOTE: the ClassWizard will add member initialization here
this->pds=pds;
this->which=which;
	//}}AFX_DATA_INIT
}


void datastructuredlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(datastructuredlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	DDX_Text(pDX, IDC_EDIT_LINE, pds->line);
	DDX_Text(pDX, IDC_EDIT_COLUMN, pds->column);
	DDX_Text(pDX, IDC_EDIT_CNT, pds->cnt);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(datastructuredlg, CDialog)
	//{{AFX_MSG_MAP(datastructuredlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// datastructuredlg message handlers

BOOL datastructuredlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	if(which!=0)
	{
		CWnd* pwnd=this->GetDlgItem(IDC_EDIT_CNT);
		pwnd->EnableWindow(0);
		pwnd=this->GetDlgItem(IDC_STATIC3);
		pwnd->SetWindowText("");
		pwnd->EnableWindow(0);
	}

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

⌨️ 快捷键说明

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