zoomshrinkdlg.cpp
来自「matlab版图像数字处理这本书的配套代码」· C++ 代码 · 共 50 行
CPP
50 行
// ZoomShrinkDlg.cpp : implementation file
//
#include "stdafx.h"
#include "ImageProcessing.h"
#include "ZoomShrinkDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CZoomShrinkDlg dialog
CZoomShrinkDlg::CZoomShrinkDlg(CWnd* pParent /*=NULL*/)
: CDialog(CZoomShrinkDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CZoomShrinkDlg)
m_origiony = 0;
m_origionx = 0;
m_sety = 256;
m_setx = 256;
//}}AFX_DATA_INIT
}
void CZoomShrinkDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CZoomShrinkDlg)
DDX_Text(pDX, IDC_EDIT1, m_origiony);
DDX_Text(pDX, IDC_EDIT2, m_origionx);
DDX_Text(pDX, IDC_EDIT3, m_sety);
DDX_Text(pDX, IDC_EDIT4, m_setx);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CZoomShrinkDlg, CDialog)
//{{AFX_MSG_MAP(CZoomShrinkDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CZoomShrinkDlg message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?