📄 serialcontroldlg.h
字号:
// SerialControlDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_SERIALCONTROLDLG_H__76B8E20E_5D97_4C72_AEFE_51791B329DCD__INCLUDED_)
#define AFX_SERIALCONTROLDLG_H__76B8E20E_5D97_4C72_AEFE_51791B329DCD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_SHOWTASKICON WM_USER+1000 //自定义的消息名称
/////////////////////////////////////////////////////////////////////////////
// CSerialControlDlg dialog
class CSerialControlDlg : public CDialog
{
// Construction
public:
int FirstRun;
BOOL Waiter2Active;
BOOL Waiter1Active;
BOOL MasterActive;
CSerialControlDlg(CWnd* pParent = NULL); // standard constructor
NOTIFYICONDATA m_NotiIconData;
bool m_IsHided;
// Dialog Data
//{{AFX_DATA(CSerialControlDlg)
enum { IDD = IDD_SERIALCONTROL_DIALOG };
CComboBox m_CheckBitWaiter2;
CComboBox m_CheckBitWaiter1;
CComboBox m_StopBitWaiter2;
CComboBox m_StopBitWaiter1;
CComboBox m_Waiter2Name;
CComboBox m_Waiter1Name;
CComboBox m_DateBitWaiter2;
CComboBox m_DateBitWaiter1;
CComboBox m_BoudRateWaiter2;
CComboBox m_BoudRateWaiter1;
CComboBox m_StopBitMaster;
CComboBox m_DateBitMaster;
CComboBox m_CheckBitMaster;
CComboBox m_BoudRateMaster;
CComboBox m_MasterName;
CMSComm m_Master;
CMSComm m_Waiter1;
CMSComm m_Waiter2;
CString m_Recive_Master;
CString m_SendDate_Master;
CString m_StatusMaster;
CString m_StatusWaiter1;
CString m_StatusWaiter2;
CString m_ReciveWaiter1;
CString m_ReciveWaiter2;
CString m_SendDateWaiter1;
CString m_SendDateWaiter2;
int m_T_R;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSerialControlDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSerialControlDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnOpenMaster();
afx_msg void OnEditchangeMasterName();
afx_msg void OnCloseMaster();
afx_msg void OnSendMaster();
afx_msg void OnOnCommMscommaster();
afx_msg void OnOpenMaster2();
afx_msg void OnCloseMaster2();
afx_msg void OnCloseMaster3();
afx_msg void OnOpenMaster3();
afx_msg void OnSendMaster2();
afx_msg void OnSendMaster3();
afx_msg void OnOnCommMscomwaiter1();
afx_msg void OnOnCommMscomwaiter2();
afx_msg void OnSelchangeMasterName();
afx_msg void OnSelchangeMasterName2();
afx_msg void OnSelchangeMasterName3();
DECLARE_EVENTSINK_MAP()
public:
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg LRESULT OnClickTaskIcon( WPARAM wParam,LPARAM lParam) ;
afx_msg LRESULT OnTaskbarRecreate( WPARAM wParam,LPARAM lParam) ;
afx_msg void OnBnClickedOk();
afx_msg virtual void OnCancel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERIALCONTROLDLG_H__76B8E20E_5D97_4C72_AEFE_51791B329DCD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -