00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #pragma once
00019
00024 #define COLOR_LINK_NORMAL RGB(0,0,255)
00025 #define COLOR_LINK_HOVER RGB(0,0,0)
00026 #define COLOR_BRUSH RGB(0,0,0)
00027
00028
00032 class CCustomLabel : public CStatic
00033 {
00034 DECLARE_DYNAMIC(CCustomLabel)
00035
00036 public:
00037 CCustomLabel();
00038 virtual ~CCustomLabel();
00039
00040
00041
00042 public:
00043 CBrush brush;
00044 COLORREF clrLinkText;
00045 CFont fontNormal;
00046 CFont fontHover;
00047 bool bMouseCaptured;
00048 void init() ;
00049 virtual void DoDataExchange(CDataExchange* pDX);
00050
00051 DECLARE_MESSAGE_MAP()
00052 afx_msg void OnPaint();
00053
00054 afx_msg HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor);
00055 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00056 afx_msg LRESULT OnMouseLeave(WPARAM, LPARAM);
00057 };
00058