XPButton.h
资源名称:Excel.rar [点击查看]
上传用户:aymxxn
上传日期:2014-11-29
资源大小:135k
文件大小:2k
源码类别:
文件操作
开发平台:
Visual C++
- #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)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}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_)