📄 delaytime.cpp
字号:
// delaytime.cpp : implementation file//#include "stdafx.h"#include "水箱实验.h"#include "delaytime.h"#include "conio.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// Cdelaytime dialogCdelaytime::Cdelaytime(CWnd* pParent /*=NULL*/) : CDialog(Cdelaytime::IDD, pParent){ //{{AFX_DATA_INIT(Cdelaytime) m_delaytime1 = 0; m_delaytime2 = 0; //}}AFX_DATA_INIT}void Cdelaytime::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(Cdelaytime) DDX_Control(pDX, IDC_DELAYTIME2, m_delaytimeedit2); DDX_Control(pDX, IDC_DELAYTIME1, m_delaytimeedit1); DDX_Text(pDX, IDC_DELAYTIME1, m_delaytime1); DDX_Text(pDX, IDC_DELAYTIME2, m_delaytime2); //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(Cdelaytime, CDialog) //{{AFX_MSG_MAP(Cdelaytime) ON_WM_PAINT() //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// Cdelaytime message handlersBOOL Cdelaytime::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here m_delaytimeedit1.LimitText(2); m_delaytimeedit2.LimitText(2); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE}void Cdelaytime::OnPaint() { CPaintDC dc(this); // device context for painting // TODO: Add your message handler code here HWND edit; GetDlgItem(IDC_DELAYTIME1,&edit); ::SetFocus(edit); // Do not call CDialog::OnPaint() for painting messages}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -