📄 jnxpbutton.h
字号:
#if !defined(AFX_XPBUTTON_H__7C6468A7_65D2_4DD8_B7B3_1CD483294610__INCLUDED_)
#define AFX_XPBUTTON_H__7C6468A7_65D2_4DD8_B7B3_1CD483294610__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// XPButton.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// JnXPButton window
class JnXPButton : public CButton
{
// Construction
public:
JnXPButton();
CPen m_BoundryPen;
CPen m_InsideBoundryPenLeft;
CPen m_InsideBoundryPenTop;
CPen m_InsideBoundryPenRight;
CPen m_InsideBoundryPenBottom;
CPen* pOldPen;
CBrush m_FillActive;
CBrush m_FillInactive;
CBrush* pOldBrush;
BOOL m_bOver;
BOOL m_bDown;
void DoGradientFill(CDC *pDC,CRect rect);
void DrawInsideBorder(CDC *pDC,CRect rect);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(JnXPButton)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~JnXPButton();
// Generated message map functions
protected:
//{{AFX_MSG(JnXPButton)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
LRESULT OnMouseLeave(WPARAM, LPARAM);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_XPBUTTON_H__7C6468A7_65D2_4DD8_B7B3_1CD483294610__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -