D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/UI/src/CustomLabel.h

00001  /*
00002  * Copyright (C) 2007 Funambol, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
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();   // standard constructor
00038         virtual ~CCustomLabel();
00039 
00040 // Dialog Data
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);    // DDX/DDV support
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 

Generated on Fri Nov 9 12:21:26 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2