📄 isaioctl.h
字号:
#if !defined(AFX_ISAIOCTL_H__524ED734_A5E6_11D9_A0D8_C41D169C0C54__INCLUDED_)
#define AFX_ISAIOCTL_H__524ED734_A5E6_11D9_A0D8_C41D169C0C54__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ISAIOCtl.h : Declaration of the CISAIOCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CISAIOCtrl : See ISAIOCtl.cpp for implementation.
class CISAIOCtrl : public COleControl
{
DECLARE_DYNCREATE(CISAIOCtrl)
// Constructor
public:
CISAIOCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CISAIOCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
~CISAIOCtrl();
DECLARE_OLECREATE_EX(CISAIOCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CISAIOCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CISAIOCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CISAIOCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CISAIOCtrl)
// 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(CISAIOCtrl)
afx_msg void Add2AddrList(short addr);
afx_msg BOOL OutPortByte(short addr, short value);
afx_msg BOOL OutPortBits(short addr, short mask, BOOL st);
afx_msg short InPortByte(short addr);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CISAIOCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
BOOL OpenPort;
enum {
//{{AFX_DISP_ID(CISAIOCtrl)
dispidAdd2AddrList = 1L,
dispidOutPortByte = 2L,
dispidOutPortBits = 3L,
dispidInPortByte = 4L,
//}}AFX_DISP_ID
};
private:
int m_ListNum;
int* m_addrlist;
int* m_Outpval;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ISAIOCTL_H__524ED734_A5E6_11D9_A0D8_C41D169C0C54__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -