📄 chilun1.cpp
字号:
// chilun1.cpp : implementation file
//
#include "stdafx.h"
#include "Code.h"
#include "resource.h"
#include "chilun1.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// chilun1 dialog
chilun1::chilun1(CWnd* pParent /*=NULL*/)
: CDialog(chilun1::IDD, pParent)
{
//{{AFX_DATA_INIT(chilun1)
//}}AFX_DATA_INIT
}
void chilun1::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(chilun1)
DDX_Control(pDX, IDC_COMBO4, m_fendumian);
DDX_Control(pDX, IDC_COMBO5, m_xuanxiang);
DDX_Control(pDX, IDC_COMBO3, m_chixiangtezheng);
DDX_Control(pDX, IDC_COMBO2, m_biaoorbianwei);
DDX_Control(pDX, IDC_COMBO1, m_chikuo);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(chilun1, CDialog)
//{{AFX_MSG_MAP(chilun1)
ON_BN_CLICKED(IDC_BUTTON2, OnHelpBtn)
ON_BN_CLICKED(IDOK, OnNextBtn)
ON_BN_CLICKED(IDCANCEL, OnQuit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// chilun1 message handlers
void chilun1::OnHelpBtn()
{
AfxMessageBox(_T("请与合肥数字化设计中心联系!"));
}
void chilun1::OnNextBtn()
{
CString getfdm, getcktz, getpx, getckqx, getbzbw;
m_fendumian.GetWindowText(getfdm);
m_chixiangtezheng.GetWindowText(getcktz);
m_xuanxiang.GetWindowText(getpx);
m_chikuo.GetWindowText(getckqx);
m_biaoorbianwei.GetWindowText(getbzbw);
if ( getfdm == _T("圆柱")
&& getcktz == _T("直齿"))
{
this->ShowWindow(SW_HIDE);
m_nextDlg.m_preDlg = this;
m_nextDlg.DoModal();
}
if (getfdm == _T("圆柱")
&& getcktz == _T("斜齿"))
{
this->ShowWindow(SW_HIDE);
m_nextDlg1.m_preDlg1 = this;
m_nextDlg1.DoModal();
}
}
void chilun1::OnQuit()
{
CDialog::OnCancel();
}
void chilun1::Quit()
{
CDialog::OnOK();
}
BOOL chilun1::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_fendumian.InsertString(0,_T("圆柱"));
m_fendumian.InsertString(1,_T("圆锥"));
m_fendumian.InsertString(2,_T("非圆"));
m_fendumian.SetCurSel(0);
m_chixiangtezheng.InsertString(0,_T("直齿"));
m_chixiangtezheng.InsertString(1,_T("斜齿"));
m_chixiangtezheng.InsertString(2,_T("曲线齿"));
m_chixiangtezheng.InsertString(3,_T("人字齿"));
m_chixiangtezheng.SetCurSel(0);
m_xuanxiang.InsertString(0,_T("无(直齿)"));
m_xuanxiang.InsertString(1,_T("左旋(偏)"));
m_xuanxiang.InsertString(2,_T("右旋(偏)"));
m_xuanxiang.SetCurSel(0);
m_chikuo.InsertString(0,_T("渐开线"));
m_chikuo.InsertString(1,_T("抛物线"));
m_chikuo.InsertString(2,_T("摆线"));
m_chikuo.InsertString(3,_T("圆弧"));
m_chikuo.InsertString(4,_T("双圆弧"));
m_chikuo.SetCurSel(0);
m_biaoorbianwei.InsertString(0,_T("标准"));
m_biaoorbianwei.InsertString(1,_T("变位"));
m_biaoorbianwei.SetCurSel(0);
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 + -