📄 mfcstatusdlg.h
字号:
// MFCStatusDlg.h : header file
//
//{{AFX_INCLUDES()
#include "progressbar.h"
//}}AFX_INCLUDES
#if !defined(AFX_MFCSTATUSDLG_H__B9020C41_D753_42E5_8EB6_D8E86B29CFFD__INCLUDED_)
#define AFX_MFCSTATUSDLG_H__B9020C41_D753_42E5_8EB6_D8E86B29CFFD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ComACRsrvr.h" // **ADDED** The MFC COM Wrapper for the Communication Sample
class ReadStatus; // **ADDED** Avoids #include-ing the class header here
/////////////////////////////////////////////////////////////////////////////
// CMFCStatusDlg dialog
class CMFCStatusDlg : public CDialog
{
// Construction
public:
CMFCStatusDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CMFCStatusDlg(); // **ADDED** need a destructor to clean up COM
// Dialog Data
//{{AFX_DATA(CMFCStatusDlg)
enum { IDD = IDD_MFCSTATUS_DIALOG };
int m_Transport;
BOOL m_BusType;
CString m_lblConnected;
CString m_Ver;
long m_BPS;
long m_CardNbr;
long m_Clock;
long m_Delta1;
long m_Delta2;
CString m_GetPPrim;
long m_GetToPrim;
CString m_IP;
long m_Port;
long m_SetToPrim;
long m_SetPPrim;
long m_Avg1;
long m_Avg2;
long m_Clock2;
long m_Max1;
long m_Max2;
CProgressBar m_ProgClock;
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMFCStatusDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMFCStatusDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnConnect();
afx_msg void OnBtnSetPrim();
afx_msg void OnBtnGetPrim();
afx_msg void OnBtnClock();
//}}AFX_MSG
afx_msg LONG OnUpdateClock(UINT,LONG); // ** ADDED
DECLARE_MESSAGE_MAP()
// **ADDED**
private:
// Interface Pointers
IControl* m_Cntl;
IStatus* m_Stat;
// Connection Point stuff
ReadStatus * m_workerEvent;
bool m_StopWork;
// Speed Calculations
long m_lastACRtic;
long m_totACRtic;
long m_ndxACRtic;
long m_lastPCtic;
long m_totPCtic;
long m_ndxPCtic;
LONGLONG m_secPCtic;
// **ADDED**
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MFCSTATUSDLG_H__B9020C41_D753_42E5_8EB6_D8E86B29CFFD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -