rotate.cpp
来自「画任意一个三角形」· C++ 代码 · 共 55 行
CPP
55 行
// ROTATE.cpp : implementation file
//
#include "stdafx.h"
#include "Picture.h"
#include "ROTATE.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CROTATE dialog
CROTATE::CROTATE(CWnd* pParent /*=NULL*/)
: CDialog(CROTATE::IDD, pParent)
{
//{{AFX_DATA_INIT(CROTATE)
m_angle = 0;
//}}AFX_DATA_INIT
}
void CROTATE::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CROTATE)
DDX_Text(pDX, IDC_EDIT1, m_angle);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CROTATE, CDialog)
//{{AFX_MSG_MAP(CROTATE)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CROTATE message handlers
void CROTATE::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
int CROTATE::getAngle()
{
return m_angle;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?