📄 shitocedlg.cpp
字号:
// shitoceDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Digihelper.h"
#include "shitoceDlg.h"
#include "math.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CshitoceDlg dialog
CshitoceDlg::CshitoceDlg(CWnd* pParent /*=NULL*/)
: CDialog(CshitoceDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CshitoceDlg)
m_outa = 0.0;
m_outb = 0.0;
m_shitocem = 0.0;
m_shitocex = 0.0;
m_shitocexp = 0.0;
m_shitocey = 0.0;
m_shitoceyp = 0.0;
//}}AFX_DATA_INIT
}
void CshitoceDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CshitoceDlg)
DDX_Text(pDX, IDC_outa, m_outa);
DDX_Text(pDX, IDC_outb, m_outb);
DDX_Text(pDX, IDC_shitocem, m_shitocem);
DDX_Text(pDX, IDC_shitocex, m_shitocex);
DDX_Text(pDX, IDC_shitocexp, m_shitocexp);
DDX_Text(pDX, IDC_shitocey, m_shitocey);
DDX_Text(pDX, IDC_shitoceyp, m_shitoceyp);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CshitoceDlg, CDialog)
//{{AFX_MSG_MAP(CshitoceDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CshitoceDlg message handlers
void CshitoceDlg::OnOK()
{
// TODO: Add extra validation here
UpdateData(TRUE);
m_outa=(m_shitocexp-m_shitocex)*cos(m_shitocem)+(m_shitoceyp-m_shitocey)*sin(m_shitocem);
m_outb=-(m_shitocexp-m_shitocex)*sin(m_shitocem)+(m_shitoceyp-m_shitocey)*cos(m_shitocem);
UpdateData(FALSE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -