📄 hmscanfs531ctl.h
字号:
#if !defined(AFX_HMSCANFS531CTL_H__A1F83AE0_0A35_486B_B047_218CA341423A__INCLUDED_)
#define AFX_HMSCANFS531CTL_H__A1F83AE0_0A35_486B_B047_218CA341423A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// HMScanFS531Ctl.h : Declaration of the CHMScanFS531Ctrl ActiveX Control class.
#include "tw_idcard.h"
/////////////////////////////////////////////////////////////////////////////
// CHMScanFS531Ctrl : See HMScanFS531Ctl.cpp for implementation.
class CMyWindow;
class CHMScanFS531Ctrl : public COleControl
{
DECLARE_DYNCREATE(CHMScanFS531Ctrl)
// Constructor
public:
CHMScanFS531Ctrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHMScanFS531Ctrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
// Implementation
protected:
~CHMScanFS531Ctrl();
DECLARE_OLECREATE_EX(CHMScanFS531Ctrl) // Class factory and guid
DECLARE_OLETYPELIB(CHMScanFS531Ctrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CHMScanFS531Ctrl) // Property page IDs
DECLARE_OLECTLTYPE(CHMScanFS531Ctrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CHMScanFS531Ctrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CHMScanFS531Ctrl)
afx_msg short GetDeviceStatus();
afx_msg void SetDeviceStatus(short nNewValue);
afx_msg short InitComm();
afx_msg void CloseCom();
afx_msg short Calibrate();
afx_msg short IdScanRcog();
afx_msg short NidScanRcog();
afx_msg BSTR GetCardName();
afx_msg BSTR GetCardNum();
afx_msg BSTR GetCardSex();
afx_msg BSTR GetCardAddress();
afx_msg BSTR GetCardPeople();
afx_msg BSTR GetCardBirthday();
afx_msg BSTR GetCardSigndata();
afx_msg BSTR GetCardValidterm();
afx_msg BSTR GetCardOther();
afx_msg void CancelCom();
afx_msg BSTR GetEndData();
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CHMScanFS531Ctrl)
void FireDeviceStatus(short DeviceStatus)
{FireEvent(eventidDeviceStatus,EVENT_PARAM(VTS_I2), DeviceStatus);}
//}}AFX_EVENT
DECLARE_EVENT_MAP()
public:
void FireScanEvent();
void FireCalibEvent();
HINSTANCE handle;
HWND hWndMsg;
short m_sDeviceStatus;
HANDLE hThreadCalibProc;
HANDLE hThreadScanProc;
HANDLE hThreadNidScanProc;
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CHMScanFS531Ctrl)
dispidDeviceStatus = 1L,
dispidInitComm = 2L,
dispidCloseCom = 3L,
dispidCalibrate = 4L,
dispidIdScanRcog = 5L,
dispidNidScanRcog = 6L,
dispidGetCardName = 7L,
dispidGetCardNum = 8L,
dispidGetCardSex = 9L,
dispidGetCardAddress = 10L,
dispidGetCardPeople = 11L,
dispidGetCardBirthday = 12L,
dispidGetCardSigndata = 13L,
dispidGetCardValidterm = 14L,
dispidGetCardOther = 15L,
dispidCancelCom = 16L,
dispidGetEndData = 17L,
eventidDeviceStatus = 1L,
//}}AFX_DISP_ID
};
private:
CMyWindow * pWnd;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HMSCANFS531CTL_H__A1F83AE0_0A35_486B_B047_218CA341423A__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -