📄 serialdlg.h
字号:
// SerialDlg.h : header file
//
#if !defined(AFX_SERIALDLG_H__9BF7112F_31F9_4544_94C7_2F87405AC053__INCLUDED_)
#define AFX_SERIALDLG_H__9BF7112F_31F9_4544_94C7_2F87405AC053__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Grids.h"
/////////////////////////////////////////////////////////////////////////////
// CSerialDlg dialog
class CSerialDlg : public CDialog
{
// Construction
public:
CSerialDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSerialDlg)
enum { IDD = IDD_SERIAL_DIALOG };
UINT m_uBits;
UINT m_uPath;
UINT m_uValue;
CString m_strValueHex;
CString m_strStatusHex;
CString m_strOut;
UINT m_uPul;
CString m_strPeriod;
int m_nPLength;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSerialDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
BOOL m_bPCorrect;
BOOL m_bVCorrect;
BOOL m_bBCorrect;
CRect m_valueRct;
CRect m_statusRct;
BOOL m_bIsPause;
BOOL SetGridsByUInt(CGrids *pG,int nH,int nV,UINT value);
UINT OnExeCalculation(UINT *pOut);
CPoint m_MRGValueOrgPt;
CPoint m_MRGStatusOrgPt;
CPoint m_MRGOutOrgPt;
CGrids m_gValue;
CGrids m_gStatus;
CGrids m_gOut;
BOOL m_bIsRunning;
UINT m_uTimer;
UINT m_uOut;
unsigned int m_uMesneData;
//UINT m_cbits;
UINT m_ucValue;
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSerialDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnExec();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnStop();
afx_msg void OnPause();
afx_msg void OnChangeEditbits();
afx_msg void OnChangeEditvalue();
afx_msg void OnChangeEditpath();
afx_msg void OnSetfocusEditbits();
afx_msg void OnSetfocusEditvalue();
afx_msg void OnSetfocusEditpath();
afx_msg void OnSetfocusEditPul();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERIALDLG_H__9BF7112F_31F9_4544_94C7_2F87405AC053__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -