📄 inputlinestartendnode.cpp
字号:
// InputLineStartEndNode.cpp : implementation file
//
#include "stdafx.h"
#include "const.h"
#include "paintobj.h"
#include "InputLineStartEndNode.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInputLineStartEndNode dialog
CInputLineStartEndNode::CInputLineStartEndNode(CWnd* pParent /*=NULL*/)
: CDialog(CInputLineStartEndNode::IDD, pParent)
{
//{{AFX_DATA_INIT(CInputLineStartEndNode)
m_uStartx = 0.0;
m_uStarty = 0.0;
m_uEndx = 0.0;
m_uEndy = 0.0;
//}}AFX_DATA_INIT
}
void CInputLineStartEndNode::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInputLineStartEndNode)
DDX_Control(pDX, IDC_EDIT4, m_endy);
DDX_Control(pDX, IDC_EDIT3, m_endx);
DDX_Control(pDX, IDC_EDIT2, m_starty);
DDX_Control(pDX, IDC_EDIT1, m_startx);
DDX_Text(pDX, IDC_EDIT1, m_uStartx);
DDX_Text(pDX, IDC_EDIT2, m_uStarty);
DDX_Text(pDX, IDC_EDIT3, m_uEndx);
DDX_Text(pDX, IDC_EDIT4, m_uEndy);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInputLineStartEndNode, CDialog)
//{{AFX_MSG_MAP(CInputLineStartEndNode)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInputLineStartEndNode message handlers
int CInputLineStartEndNode::DoModal(int nParameter,BOOL bAngleLength)
{
// TODO: Add your specialized code here and/or call the base class
m_nParameter=nParameter;
m_bAngleLength=bAngleLength;
return CDialog::DoModal();
}
BOOL CInputLineStartEndNode::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
if (m_nParameter == 1)
{
m_startx.EnableWindow(FALSE);
m_starty.EnableWindow(FALSE);
}
else
{
m_startx.EnableWindow(TRUE);
m_starty.EnableWindow(TRUE);
}
if (m_bAngleLength)
{
m_endx.EnableWindow(FALSE);
m_endy.EnableWindow(FALSE);
}
else
{
m_endx.EnableWindow(TRUE);
m_endy.EnableWindow(TRUE);
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -