📄 controlerset.cpp
字号:
// ControlerSet.cpp : implementation file//#include "stdafx.h"#include "水箱实验.h"#include "ControlerSet.h"#include "conio.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CControlerSet dialogCControlerSet::CControlerSet(CWnd* pParent /*=NULL*/) : CDialog(CControlerSet::IDD, pParent){ //{{AFX_DATA_INIT(CControlerSet) m_pidcontrol = -1; //}}AFX_DATA_INIT}void CControlerSet::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CControlerSet) DDX_Radio(pDX, IDC_PIDCONTROL, m_pidcontrol); //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CControlerSet, CDialog) //{{AFX_MSG_MAP(CControlerSet) ON_BN_CLICKED(IDC_DMCCONTROL, OnDmccontrol) ON_BN_CLICKED(IDC_OTHERCONTROL, OnOthercontrol) ON_BN_CLICKED(IDC_PIDCONTROL, OnPidcontrol) ON_BN_CLICKED(IDC_SMITHCONTROL, OnSmithcontrol) ON_WM_PAINT() //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CControlerSet message handlersvoid CControlerSet::OnDmccontrol() { // TODO: Add your control notification handler code here if(IsDlgButtonChecked(IDC_DMCCONTROL)) { m_pidcontrol=dmc_control; } }void CControlerSet::OnOthercontrol() { // TODO: Add your control notification handler code here if(IsDlgButtonChecked(IDC_OTHERCONTROL)) { m_pidcontrol=other_control; } }void CControlerSet::OnPidcontrol() { // TODO: Add your control notification handler code here if(IsDlgButtonChecked(IDC_PIDCONTROL)) { m_pidcontrol=pid_control; }}void CControlerSet::OnSmithcontrol() { // TODO: Add your control notification handler code here if(IsDlgButtonChecked(IDC_SMITHCONTROL)) { m_pidcontrol=smith_control; }}void CControlerSet::OnPaint() { CPaintDC dc(this); // device context for painting // TODO: Add your message handler code here HWND edit; GetDlgItem(IDC_PIDCONTROL,&edit); ::SetFocus(edit); // Do not call CDialog::OnPaint() for painting messages}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -