inputdlg.cpp

来自「用C++语言对1024点的FFT进行编程」· C++ 代码 · 共 62 行

CPP
62
字号
// INPUTDLG.cpp : implementation file
//

#include "stdafx.h"
#include "FFT.h"
#include "INPUTDLG.h"

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

/////////////////////////////////////////////////////////////////////////////
// CINPUTDLG dialog


CINPUTDLG::CINPUTDLG(CWnd* pParent /*=NULL*/)
	: CDialog(CINPUTDLG::IDD, pParent)
{
	//{{AFX_DATA_INIT(CINPUTDLG)
	m_F = 0;
	m_N = 0;
	m_T = 0.0;
	//}}AFX_DATA_INIT
}


void CINPUTDLG::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CINPUTDLG)
	DDX_Text(pDX, IDC_F, m_F);
	DDV_MinMaxInt(pDX, m_F, 1, 250);
	DDX_Text(pDX, IDC_N, m_N);
	DDV_MinMaxInt(pDX, m_N, 1, 257);
	DDX_Text(pDX, IDC_T, m_T);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CINPUTDLG message handlers

BOOL CINPUTDLG::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_N = 32;
	m_F = 50;
	m_T = 0.002;
	UpdateData(FALSE);
	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 + -
显示快捷键?