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

📄 zhongzhifilterdialog.cpp

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

#include "stdafx.h"
#include "bmpDemo.h"
#include "ZhongZhiFilterDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// ZhongZhiFilterDialog dialog


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


void ZhongZhiFilterDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(ZhongZhiFilterDialog)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(ZhongZhiFilterDialog, CDialog)
	//{{AFX_MSG_MAP(ZhongZhiFilterDialog)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
	ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// ZhongZhiFilterDialog message handlers

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

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

void ZhongZhiFilterDialog::OnRadio3() 
{
	// TODO: Add your control notification handler code here
	flag=3;
	
}

void ZhongZhiFilterDialog::OnRadio4() 
{
	// TODO: Add your control notification handler code here
	flag=4;
	
}

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

⌨️ 快捷键说明

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