📄 chordattrdlg.cpp
字号:
// ChordAttrDlg.cpp : implementation file
//
#include "stdafx.h"
#include "const.h"
#include "painted.h"
#include "paintobj.h"
#include "paintdoc.h"
#include "FillColorStatic.h"
#include "ChordAttrDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CChordAttrDlg dialog
CChordAttrDlg::CChordAttrDlg(CWnd* pParent /*=NULL*/)
: CDialog(CChordAttrDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CChordAttrDlg)
m_bFill = FALSE;
m_dCenterx = 0.0;
m_dCentery = 0.0;
m_dEndAngle = 0.0;
m_dEndx = 0.0;
m_dEndy = 0.0;
m_dRadius = 0.0;
m_dStartAngle = 0.0;
m_dStartx = 0.0;
m_dStarty = 0.0;
//}}AFX_DATA_INIT
}
void CChordAttrDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CChordAttrDlg)
DDX_Control(pDX, IDC_FILLCOLOR, m_ctlFillColor);
DDX_Check(pDX, IDC_BFILL, m_bFill);
DDX_Text(pDX, IDC_CIRCLECENTERX, m_dCenterx);
DDX_Text(pDX, IDC_CIRCLECENTERY, m_dCentery);
DDX_Text(pDX, IDC_ENDANGLE, m_dEndAngle);
DDX_Text(pDX, IDC_ENDX, m_dEndx);
DDX_Text(pDX, IDC_ENDY, m_dEndy);
DDX_Text(pDX, IDC_RADIUS, m_dRadius);
DDX_Text(pDX, IDC_STARTANGLE, m_dStartAngle);
DDX_Text(pDX, IDC_STARTX, m_dStartx);
DDX_Text(pDX, IDC_STARTY, m_dStarty);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CChordAttrDlg, CDialog)
//{{AFX_MSG_MAP(CChordAttrDlg)
ON_BN_CLICKED(IDC_CHANGECOLOR, OnChangecolor)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CChordAttrDlg message handlers
void CChordAttrDlg::OnChangecolor()
{
// TODO: Add your control notification handler code here
CColorDialog ColorDialog;
// Invoke the common color selector
// dialog box.
if( ColorDialog.DoModal() == IDOK )
{
// We've set either the fill color or the
// border color.
m_ctlFillColor.m_FillColor = ColorDialog.GetColor();
}
m_ctlFillColor.RedrawWindow();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -