imagepropertydialog.cpp

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

CPP
59
字号
// ImagePropertyDialog.cpp : implementation file
//

#include "stdafx.h"
#include "bmpDemo.h"
#include "ImagePropertyDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// ImagePropertyDialog dialog


ImagePropertyDialog::ImagePropertyDialog(CWnd* pParent /*=NULL*/)
	: CDialog(ImagePropertyDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(ImagePropertyDialog)
	m_ImageWidth = 0;
	m_ImageHeight = 0;
	//}}AFX_DATA_INIT
}


void ImagePropertyDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(ImagePropertyDialog)
	DDX_Text(pDX, IDC_EDIT1, m_ImageWidth);
	DDV_MinMaxInt(pDX, m_ImageWidth, 0, 65536);
	DDX_Text(pDX, IDC_EDIT2, m_ImageHeight);
	DDV_MinMaxInt(pDX, m_ImageHeight, 0, 65536);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// ImagePropertyDialog message handlers

void ImagePropertyDialog::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
//	GetDlgItem(IDC_EDIT1)->EnableWindow(FALSE);
//	GetDlgItem(IDC_EDIT2)->EnableWindow(FALSE);
	// TODO: Add your message handler code here
	
	// Do not call CDialog::OnPaint() for painting messages
}

⌨️ 快捷键说明

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