jnxpbutton.h

来自「此次上传的使linux下的文件传输协议」· C头文件 代码 · 共 65 行

H
65
字号
#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 + =
减小字号Ctrl + -
显示快捷键?