sizedlg.cpp
来自「本文以数字图像处理、压缩技术和MATLAB应用为基础」· C++ 代码 · 共 138 行
CPP
138 行
// SizeDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Design.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSlopeDlg dialog
CSlopeDlg::CSlopeDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSlopeDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSlopeDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CSlopeDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSlopeDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSlopeDlg, CDialog)
//{{AFX_MSG_MAP(CSlopeDlg)
ON_BN_CLICKED(IDC_RADIO_SLOPE_UP, OnRadioSlopeUp)
ON_BN_CLICKED(IDC_RADIO_SLOPE_DOWN, OnRadioSlopeDown)
ON_BN_CLICKED(IDC_RADIO_SLOPE_LEFT, OnRadioSlopeLeft)
ON_BN_CLICKED(IDC_RADIO_SLOPE_RIGHT, OnRadioSlopeRight)
ON_BN_CLICKED(IDC_RADIO_SLOPE_UPLEFT, OnRadioSlopeUpleft)
ON_BN_CLICKED(IDC_RADIO_SLOPE_UPRIGHT, OnRadioSlopeUpright)
ON_BN_CLICKED(IDC_RADIO_SLOPE_DOWNLEFT, OnRadioSlopeDownleft)
ON_BN_CLICKED(IDC_RADIO_SLOPE_DOWNRIGHT, OnRadioSlopeDownright)
ON_BN_CLICKED(IDC_RADIO_SLOPE_HIGH_UPLEFT, OnRadioSlopeHighUpleft)
ON_BN_CLICKED(IDC_RADIO_SLOPE_HIGH_UPRIGHT, OnRadioSlopeHighUpright)
ON_BN_CLICKED(IDC_RADIO_SLOPE_HIGH_DOWNLEFT, OnRadioSlopeHighDownleft)
ON_BN_CLICKED(IDC_RADIO_SLOPE_HIGH_DOWNRIGHT, OnRadioSlopeHighDownright)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSlopeDlg message handlers
BOOL CSlopeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CheckRadioButton(IDC_RADIO_SLOPE_UP, IDC_RADIO_SLOPE_HIGH_DOWNRIGHT, IDC_RADIO_SLOPE_UP);
m_type = UP;
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CSlopeDlg::OnRadioSlopeUp()
{
// TODO: Add your control notification handler code here
m_type = UP;
}
void CSlopeDlg::OnRadioSlopeDown()
{
// TODO: Add your control notification handler code here
m_type = DOWN;
}
void CSlopeDlg::OnRadioSlopeLeft()
{
// TODO: Add your control notification handler code here
m_type = LEFT;
}
void CSlopeDlg::OnRadioSlopeRight()
{
// TODO: Add your control notification handler code here
m_type = RIGHT;
}
void CSlopeDlg::OnRadioSlopeUpleft()
{
// TODO: Add your control notification handler code here
m_type = LEFTUP;
}
void CSlopeDlg::OnRadioSlopeUpright()
{
// TODO: Add your control notification handler code here
m_type = RIGHTUP;
}
void CSlopeDlg::OnRadioSlopeDownleft()
{
// TODO: Add your control notification handler code here
m_type = LEFTDOWN;
}
void CSlopeDlg::OnRadioSlopeDownright()
{
// TODO: Add your control notification handler code here
m_type = RIGHTDOWN;
}
void CSlopeDlg::OnRadioSlopeHighUpleft()
{
// TODO: Add your control notification handler code here
m_type = HIGHLEFTUP;
}
void CSlopeDlg::OnRadioSlopeHighUpright()
{
// TODO: Add your control notification handler code here
m_type = HIGHRIGHTUP;
}
void CSlopeDlg::OnRadioSlopeHighDownleft()
{
// TODO: Add your control notification handler code here
m_type = HIGHLEFTDOWN;
}
void CSlopeDlg::OnRadioSlopeHighDownright()
{
// TODO: Add your control notification handler code here
m_type = HIGHRIGHTDOWN;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?