📄 trianglebutton.h
字号:
#if !defined(AFX_TRIANGLEBUTTON_H__86600F03_CDF3_48B6_9B42_0F4DE04E2606__INCLUDED_)
#define AFX_TRIANGLEBUTTON_H__86600F03_CDF3_48B6_9B42_0F4DE04E2606__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TriangleButton.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CTriangleButton window
#define _LEFT_BUTTON 0
#define _RIGHT_BUTTON 1
#define _UP_BUTTON 2
#define _DOWN_BUTTON 3
class CTriangleButton : public CWnd
{
// Construction
public:
CTriangleButton();
// Attributes
public:
int m_nStates;
CPoint m_ptBorder[3];
int m_nButtonType;
CToolTipCtrl* m_pToolTip;
CRect m_rectSearch;
CString m_sCaption;
// Operations
public:
void CreateTooltips();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTriangleButton)
public:
virtual BOOL Create(CString sCaption,int nButtonType,CRect rect, CWnd* pParentWnd, UINT nID);
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTriangleButton();
// Generated message map functions
protected:
//{{AFX_MSG(CTriangleButton)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnPaint();
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMH, LRESULT *pResult);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TRIANGLEBUTTON_H__86600F03_CDF3_48B6_9B42_0F4DE04E2606__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -