📄 groundingctl.h
字号:
#if !defined(AFX_GROUNDINGCTL_H__77C2D029_F738_4E76_8DA1_03145BDE87E5__INCLUDED_)
#define AFX_GROUNDINGCTL_H__77C2D029_F738_4E76_8DA1_03145BDE87E5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GroundingCtl.h : Declaration of the CGroundingCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CGroundingCtrl : See GroundingCtl.cpp for implementation.
class CGroundingCtrl : public COleControl
{
DECLARE_DYNCREATE(CGroundingCtrl)
// Constructor
public:
CGroundingCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGroundingCtrl)
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:
short m_lineSize;
BOOL m_bImageHollow;
OLE_COLOR m_foreColor;
OLE_COLOR m_backColor;
~CGroundingCtrl();
DECLARE_OLECREATE_EX(CGroundingCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CGroundingCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CGroundingCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CGroundingCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CGroundingCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
afx_msg LRESULT OnMyMessage101(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CGroundingCtrl)
afx_msg OLE_COLOR GetBackColor();
afx_msg void SetBackColor(OLE_COLOR nNewValue);
afx_msg OLE_COLOR GetForeColor();
afx_msg void SetForeColor(OLE_COLOR nNewValue);
afx_msg BOOL GetImageHollow();
afx_msg void SetImageHollow(BOOL bNewValue);
afx_msg short GetLineSize();
afx_msg void SetLineSize(short nNewValue);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
// Event maps
//{{AFX_EVENT(CGroundingCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CGroundingCtrl)
dispidBackColor = 1L,
dispidForeColor = 2L,
dispidImageHollow = 3L,
dispidLineSize = 4L,
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GROUNDINGCTL_H__77C2D029_F738_4E76_8DA1_03145BDE87E5__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -