xpbutton.h

来自「这是一个关于一个基于局域网的聊天程序」· C头文件 代码 · 共 71 行

H
71
字号
#if !defined(AFX_XPBUTTON_H__1143C55B_B3B3_4610_851C_2CAAA94E171D__INCLUDED_)
#define AFX_XPBUTTON_H__1143C55B_B3B3_4610_851C_2CAAA94E171D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// XPButton.h : header file
// Modified by jingzhou xu

/////////////////////////////////////////////////////////////////////////////
// CXPButton window

class CXPButton : public CButton
{
	DECLARE_DYNCREATE(CXPButton)
// Construction
public:
	CXPButton();
	CPen pBoundryPen;
	CPen pInsideBoundryPenLeft;
	CPen pInsideBoundryPenTop;
	CPen pInsideBoundryPenRight;
	CPen pInsideBoundryPenBottom;
	CPen *pOldPen;
	CBrush pFillActive;
	CBrush pFillInactive;
	CBrush *pOldBrush;
	BOOL m_bOverControl;
	BOOL m_bTracking;
	CString strCaption;
// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CXPButton)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL Focus;
	LRESULT afx_msg OnMouseLeave(WPARAM wparam, LPARAM lparam);
	void afx_msg OnMouseHover(WPARAM wparam, LPARAM lparam);
	void afx_msg OnMouseMove(UINT nFlags, CPoint point);
	void DrawInsideBorder(CDC *pDC,CRect rect);
	void DoGradientFill(CDC *pDC,CRect rect);
	virtual ~CXPButton();

	// Generated message map functions
protected:
	//{{AFX_MSG(CXPButton)
	afx_msg void OnSended();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_XPBUTTON_H__1143C55B_B3B3_4610_851C_2CAAA94E171D__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?