📄 arrowctl.h
字号:
#if !defined(AFX_ARROWCTL_H__0DF27BB1_6E49_4CA2_B31F_8B991C7C20DC__INCLUDED_)
#define AFX_ARROWCTL_H__0DF27BB1_6E49_4CA2_B31F_8B991C7C20DC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ArrowCtl.h : Declaration of the CArrowCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CArrowCtrl : See ArrowCtl.cpp for implementation.
class CArrowCtrl : public COleControl
{
DECLARE_DYNCREATE(CArrowCtrl)
// Constructor
public:
CArrowCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CArrowCtrl)
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;
short m_arrowStyle; //arrow's style 1-top arrow;2-bottom arrow
// 3-left arrow;4-right arrow
OLE_COLOR m_foreColor;
OLE_COLOR m_backColor;
~CArrowCtrl();
DECLARE_OLECREATE_EX(CArrowCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CArrowCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CArrowCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CArrowCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CArrowCtrl)
// 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(CArrowCtrl)
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 short GetArrowStyle();
afx_msg void SetArrowStyle(short 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(CArrowCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CArrowCtrl)
dispidBackColor = 1L,
dispidForeColor = 2L,
dispidArrowStyle = 3L,
dispidImageHollow = 4L,
dispidLineSize = 5L,
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ARROWCTL_H__0DF27BB1_6E49_4CA2_B31F_8B991C7C20DC__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -