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

📄 noisedialog.cpp

📁 主要是应用VC进行傅立叶变换和反变换的程序
💻 CPP
字号:
// NoiseDialog.cpp : implementation file
//

#include "stdafx.h"
#include "bmpDemo.h"
#include "NoiseDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// NoiseDialog dialog


NoiseDialog::NoiseDialog(CWnd* pParent /*=NULL*/)
	: CDialog(NoiseDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(NoiseDialog)
	m_ReValue = 0.0;
	m_ImValue = 0.0;
	m_Distance = 0;
	m_Jd = 0.0;
	//}}AFX_DATA_INIT
	flag=2;
}


void NoiseDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(NoiseDialog)
	DDX_Text(pDX, IDC_EDIT1, m_ReValue);
	DDX_Text(pDX, IDC_EDIT2, m_ImValue);
	DDX_Text(pDX, IDC_EDIT3, m_Distance);
	DDX_Text(pDX, IDC_EDIT4, m_Jd);
	DDV_MinMaxDouble(pDX, m_Jd, -180., 180.);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(NoiseDialog, CDialog)
	//{{AFX_MSG_MAP(NoiseDialog)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// NoiseDialog message handlers

void NoiseDialog::OnRadio1() 
{
	// TODO: Add your control notification handler code here
	flag=1;
	
}

void NoiseDialog::OnRadio2() 
{
	// TODO: Add your control notification handler code here
	flag=2;
	
}

void NoiseDialog::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	// TODO: Add your message handler code here
	if(flag==1)
	{
		//GetDlgItem(IDC_RADIO1)->SetCheck(TRUE);
		CheckRadioButton(IDC_RADIO1,IDC_RADIO2,IDC_RADIO1);  
	}
	else
	{
		CheckRadioButton(IDC_RADIO1,IDC_RADIO2,IDC_RADIO2);  
	}
	
	// Do not call CDialog::OnPaint() for painting messages
}

⌨️ 快捷键说明

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