📄 singleocxctl.h
字号:
#if !defined(AFX_SINGLEOCXCTL_H__7B0C9FA1_5777_4617_AB4E_A4F7E306A8C1__INCLUDED_)
#define AFX_SINGLEOCXCTL_H__7B0C9FA1_5777_4617_AB4E_A4F7E306A8C1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SingleOcxCtl.h : Declaration of the CSingleOcxCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CSingleOcxCtrl : See SingleOcxCtl.cpp for implementation.
class CSingleOcxCtrl : public COleControl
{
DECLARE_DYNCREATE(CSingleOcxCtrl)
// Constructor
public:
CSingleOcxCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSingleOcxCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
// Implementation
protected:
~CSingleOcxCtrl();
DECLARE_OLECREATE_EX(CSingleOcxCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CSingleOcxCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CSingleOcxCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CSingleOcxCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CSingleOcxCtrl)
// 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(CSingleOcxCtrl)
short m_xPos;
afx_msg void OnXPosChanged();
afx_msg short GetYPos();
afx_msg void SetYPos(short nNewValue);
afx_msg void SetText(LPCTSTR lpText);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CSingleOcxCtrl)
void FireSINGLEOLEERR(LPCTSTR strErrMess)
{FireEvent(eventidSINGLEOLEERR,EVENT_PARAM(VTS_BSTR), strErrMess);}
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CSingleOcxCtrl)
dispidXPos = 1L,
dispidYPos = 2L,
dispidSetText = 3L,
eventidSINGLEOLEERR = 1L,
//}}AFX_DISP_ID
};
private:
CString m_strText ;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SINGLEOCXCTL_H__7B0C9FA1_5777_4617_AB4E_A4F7E306A8C1__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -