dlg_row.cpp

来自「数据分析系统主要研究大量的数据」· C++ 代码 · 共 56 行

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

#include "stdafx.h"
#include "dataanalisis.h"
#include "Dlg_row.h"
#include "Dlg_location.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlg_row dialog


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


void CDlg_row::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlg_row)
	DDX_Control(pDX, IDC_NO, m_NO);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CDlg_row message handlers
int n;
int g=0;
void CDlg_row::OnOK() 
{
	// TODO: Add extra validation here
	char cEdit[10];
    m_NO.GetWindowText(cEdit,10);
	n=int(atof((LPCTSTR)cEdit));
	CDialog::OnOK();
	CDlg_location location;
    location.DoModal();
}

⌨️ 快捷键说明

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