📄 mfcbatchmovedlg.h
字号:
// MFCBatchMoveDlg.h : header file
//
#if !defined(AFX_MFCBATCHMOVEDLG_H__CE5A251F_4C25_4DEC_A4D8_87940BE9406C__INCLUDED_)
#define AFX_MFCBATCHMOVEDLG_H__CE5A251F_4C25_4DEC_A4D8_87940BE9406C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ComACRsrvr.h" // **ADDED** The MFC COM Wrapper for the Communication Sample
/////////////////////////////////////////////////////////////////////////////
// CMFCBatchMoveDlg dialog
class CMFCBatchMoveDlg : public CDialog
{
// Construction
public:
CMFCBatchMoveDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CMFCBatchMoveDlg(); // **ADDED** need a destructor to clean up COM
// Dialog Data
//{{AFX_DATA(CMFCBatchMoveDlg)
enum { IDD = IDD_MFCBATCHMOVE_DIALOG };
CString m_MoveFileName;
CString m_MoveLbl;
int m_Transport;
BOOL m_BusType;
long m_BPS;
long m_CardNbr;
CString m_IP;
long m_Port;
CString m_Ver;
CString m_lblConnected;
long m_CmdDiff;
long m_CmdMsec;
DWORD m_CmdStart;
DWORD m_CmdEnd;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMFCBatchMoveDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMFCBatchMoveDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnLoadBatch();
afx_msg void OnBtnConnect();
afx_msg void OnSendBatch();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
// Interface Pointers
IControl* m_Cntl;
// Safearray
bool m_TargetTypeLong;
SAFEARRAY* pSAz;
vector<CComVariant> lsym;
// Helpfull utils
long getBinVal(KzStr);
long getLongVal(KzStr);
float getFloatVal(KzStr);
LONGLONG m_secPCtic;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MFCBATCHMOVEDLG_H__CE5A251F_4C25_4DEC_A4D8_87940BE9406C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -