📄 testdlg.h
字号:
// TestDlg.h : header file
//
#if !defined(AFX_TESTDLG_H__C3564411_7B08_44F8_8271_68D55E2B1B89__INCLUDED_)
#define AFX_TESTDLG_H__C3564411_7B08_44F8_8271_68D55E2B1B89__INCLUDED_
#include "Serial.h" // Added by ClassView
#define TRUE 1
#define FALSE 0
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog
class CTestDlg : public CDialog
{
// Construction
public:
BOOL IsHex(char *pString);
void ToHex(char *pSource,char *pDest);
void GetANSI(LPCTSTR lpString,char *charstr);
char * UnicodeToAnsi(LPCTSTR lpString);
virtual ~CTestDlg();
CTestDlg(CWnd* pParent = NULL); // standard constructor
// User define
struct DlgVarAttr
{
CString PORT;
CString BAUD;
CString DATABITS;
CString STOPBITS;
CString PARITY;
UINT RCVHEX;
UINT SENDHEX;
UINT AUTOSEND;
CString FREQUENCY;
}DlgAttr; //to save variant in the main window
// End User define
// Dialog Data
//{{AFX_DATA(CTestDlg)
enum { IDD = IDD_TEST_DIALOG };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
double CStringToInt(CString str);
CString m_statusbar_str; //Save StatusBar string
HICON m_hIcon;
CSerial m_com;
// Generated message map functions
//{{AFX_MSG(CTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnHelpInfo();
afx_msg void OnSelchangePort();
afx_msg void OnSelchangeBaud();
afx_msg void OnSelchangeDatabits();
afx_msg void OnSelchangeStopbits();
afx_msg void OnSelchangeParity();
afx_msg void OnBtnopen();
afx_msg void OnChkrcvhex();
afx_msg void OnChksndhex();
afx_msg void OnAutosend();
afx_msg void OnChangeEdtfreqency();
afx_msg void OnKillfocusEdtfreqency();
afx_msg void OnClsrcv();
afx_msg void OnClssend();
afx_msg void OnCommunication(WPARAM ch, LPARAM port);
afx_msg void OnMansend();
afx_msg void OnReset();
afx_msg void OnSave();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTDLG_H__C3564411_7B08_44F8_8271_68D55E2B1B89__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -