📄 scommtestdlg.h
字号:
// SCommTestDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_SCOMMTESTDLG_H__AF16090B_45D7_4A6D_A66F_7A3FB36B70CB__INCLUDED_)
#define AFX_SCOMMTESTDLG_H__AF16090B_45D7_4A6D_A66F_7A3FB36B70CB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CSCommTestDlg dialog
class CSCommTestDlg : public CDialog
{
// Construction
public:
// CString m_TXWord;
CSCommTestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSCommTestDlg)
enum { IDD = IDD_SCOMMTEST_DIALOG };
CComboBox m_cTextcolor;
CComboBox m_cScrollstyle;
CComboBox m_cScreen;
CComboBox m_nComb2;
CComboBox m_nComb1;
CMSComm m_ctrlComm;
int m_nType;
CString m_nShow;
int m_nAlign;
UINT m_nChipnum;
UINT m_nWidth;
UINT m_nHeight;
UINT m_nScreen;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSCommTestDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
BOOL m_bShow;
BOOL m_Winstate;
void AlignmentChange(UINT nID);
afx_msg void OnHide();
afx_msg void OnShow();
afx_msg void Top();
afx_msg void Down();
afx_msg void OnLiben(WPARAM wParam,LPARAM lParam);
afx_msg void SendData(UINT m_nCurScreen);
// Generated message map functions
//{{AFX_MSG(CSCommTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnWordType();
afx_msg void OnComm();
afx_msg void OnSend();
afx_msg void OnExit();
afx_msg void OnClear();
afx_msg void OnReadFile();
afx_msg void OnOpencomm();
afx_msg void OnClosecomm();
afx_msg void OnSettime();
afx_msg void OnChecktime();
afx_msg void OnAlignLeft();
afx_msg void OnAlignCenter();
afx_msg void OnAlignRight();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnChangeWidth();
afx_msg void OnChangeHeight();
afx_msg void OnMaxtextShow();
afx_msg void OnChangeCommNum();
afx_msg void OnChangeBaud();
afx_msg void OnSelchangeScreen();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnSelchangeTextColor();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
UINT alignment1,alignment2,alignment3,alignment4;
COLORREF color1,color2,color3,color4;
CBrush m_brush;
UINT m_nTotalscreen;
unsigned int i,j,m,len,m_nEnterNum;//i,j,t用于循环
unsigned char xy[4][512][120];
unsigned char HZKcode[256*2+16];
CString string,string1,string2,string3,string4,filename,file1,file2;
CTime time;
BOOL hanzi,readfile,filechange;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SCOMMTESTDLG_H__AF16090B_45D7_4A6D_A66F_7A3FB36B70CB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -