📄 settingdlg.h
字号:
#if !defined(AFX_SETTINGDLG_H__CFC6442F_609B_4024_A3C1_93E7C7F37052__INCLUDED_)
#define AFX_SETTINGDLG_H__CFC6442F_609B_4024_A3C1_93E7C7F37052__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SettingDlg.h : header file
//
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
// CSettingDlg dialog
/* order:
COM:
COM1
COM2
COM3
COM4
DataPerSec:
110
300
1200
2400
4800
9600
19200
38400
57600
115200
230400
460800
921600
DataBits:
5
6
7
8
*/
#define DEFAULT_BitPerSec 9 //115200
#define DEFAULT_SelCOM 0 //COM1
#define DEFAULT_DataBits 3 //8
#define DEFAULT_FlowCtrl 2
#define DEFAULT_Parity 2
#define DEFAULT_BlockSize 1024
#define DEFAULT_TimeOut 3600
#define DEFAULT_StopBits 0
class CSettingDlg : public CDialog
{
// Construction
public:
CSettingDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSettingDlg)
enum { IDD = IDD_DIALOG_SETING };
int m_nBitPerSec;
int m_nSelCOM;
int m_nDataBits;
int m_nFlowCtrl;
int m_nParity;
int m_nBlockSize;
UINT m_nTimeOut;
int m_nStopBits;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSettingDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSettingDlg)
afx_msg void OnOk();
afx_msg void OnDefault();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SETTINGDLG_H__CFC6442F_609B_4024_A3C1_93E7C7F37052__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -