editdialog.cpp

来自「主要是应用VC进行傅立叶变换和反变换的程序」· C++ 代码 · 共 71 行

CPP
71
字号
// EditDialog.cpp : implementation file
//

#include "stdafx.h"
#include "bmpDemo.h"
#include "EditDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// EditDialog dialog


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


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


BEGIN_MESSAGE_MAP(EditDialog, CDialog)
	//{{AFX_MSG_MAP(EditDialog)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// EditDialog message handlers

void EditDialog::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	// TODO: Add your message handler code here
	GetDlgItem(IDC_RADIO1)->SetIcon((HICON)IDI_ArrowICON,TRUE);

	// Do not call CDialog::OnPaint() for painting messages
}

BOOL EditDialog::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	CButton *pButton=(CButton*)GetDlgItem(IDC_RADIO1);
	pButton->SetIcon(AfxGetApp()->LoadIcon(IDI_ArrowICON));
	pButton->SetCheck(TRUE);
	pButton=(CButton*)GetDlgItem(IDC_RADIO2);
	pButton->SetIcon(AfxGetApp()->LoadIcon(IDI_TSelectICON));
	pButton=(CButton*)GetDlgItem(IDC_RADIO3);
	pButton->SetIcon(AfxGetApp()->LoadIcon(IDI_ESelectICON));
	
	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 + -
显示快捷键?