📄 buttonctl.h
字号:
#if !defined(AFX_BUTTONCTL_H__BC9C5A94_C896_11D4_AF14_00E04CDD4565__INCLUDED_)
#define AFX_BUTTONCTL_H__BC9C5A94_C896_11D4_AF14_00E04CDD4565__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ButtonCtl.h : Declaration of the CButtonCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CButtonCtrl : See ButtonCtl.cpp for implementation.
class CButtonCtrl : public COleControl
{
DECLARE_DYNCREATE(CButtonCtrl)
// Constructor
public:
CButtonCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CButtonCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
// Implementation
protected:
~CButtonCtrl();
DECLARE_OLECREATE_EX(CButtonCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CButtonCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CButtonCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CButtonCtrl) // Type name and misc status
// Subclassed control support
BOOL IsSubclassedControl();
LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam);
// Message maps
//{{AFX_MSG(CButtonCtrl)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CButtonCtrl)
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CButtonCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
BOOL m_bMouseCaptured;
BYTE MapRand(UINT nMax);
BOOL bDraw;
enum {
//{{AFX_DISP_ID(CButtonCtrl)
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BUTTONCTL_H__BC9C5A94_C896_11D4_AF14_00E04CDD4565__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -