📄 comsetup.h
字号:
#if !defined(AFX_COMSETUP_H__B785827E_2ECE_4232_9015_D1B796A75651__INCLUDED_)
#define AFX_COMSETUP_H__B785827E_2ECE_4232_9015_D1B796A75651__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ComSetup.h : header file
//
#include <Winbase.h>
/////////////////////////////////////////////////////////////////////////////
// CComSetup dialog
class CComSetup : public CDialog
{
// Construction
public:
CComSetup(CWnd* pParent = NULL); // standard constructor
~CComSetup(); // standard constructor
char m_ComName[20];
private:
// Dialog Data
//{{AFX_DATA(CComSetup)
enum { IDD = IDD_COMSETUP };
CComboBox m_ByteBits;
CComboBox m_Xonoff;
CComboBox m_StopBits;
CComboBox m_BaudRate;
CComboBox m_ComNumber;
//}}AFX_DATA
private:
DCB m_Dcb;
CString m_CurComName;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CComSetup)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
public:
void ConvertRegtoDCB(void);
ULONG InitCom(char* ComName);
ULONG CloseCom();
HANDLE m_Handle;
private:
BOOL GetCOMRegSetup(void);
BOOL SetCOMRegSetup(void);
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CComSetup)
virtual BOOL OnInitDialog();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COMSETUP_H__B785827E_2ECE_4232_9015_D1B796A75651__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -