
/*************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/MAPBTN.H__   1.2.1.4   17 Apr 1997 15:55:38   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/MAPBTN.H__  $
** 
**    Rev 1.2.1.4   17 Apr 1997 15:55:38   ZJRD
** No change.
** 
**    Rev 1.2.1.3   16 Apr 1997 10:26:40   ZJRD
** No change.
** 
**    Rev 1.2.1.2   10 Apr 1997 15:37:18   ZJRD
** No change.
** 
**    Rev 1.2.1.1   03 Apr 1997 15:16:50   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:21:52   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:32:00   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:47:42   ZJRD
** Initial revision.
** 
**    Rev 1.0.1.2   09 Dec 1996 10:16:26   ZJRD
** EasyPack/SLD Version 2.0P
** 
**    Rev 1.0.1.0   11 Nov 1996 12:59:42   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.4   09 Sep 1996 13:18:58   ZJRD
** No change.
** 
**    Rev 1.3   05 Sep 1996 11:30:30   ZJRD
** No change.
** 
**    Rev 1.2   02 Sep 1996 09:57:34   ZJRD
** No change.
** 
**    Rev 1.1   28 Aug 1996 15:52:50   ZJRD
** EasyPack/SLD Version 1.9b
**************************************************************************/
//
// mapbtn.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CColorBtn window

class CMapColorBtn : public CBitmapButton
{
// Construction
public:
   CMapColorBtn(int nColorIndex, LPCSTR lpString=NULL);
   CMapColorBtn();
   void SetColor(int nColorIndex);
   void SetBtnTitle(LPCSTR lpString=NULL);
   
// Attributes
protected:
    int      m_nColorIndex;
    CString  m_string;
    
public:
    BOOL     m_bHighlight;
     
protected:   
           void DrawColorBtn(CDC *pDC,LPDRAWITEMSTRUCT pDrawItem);
   virtual void DrawUpFrame(CDC *pDC, LPRECT pRect);   
   virtual void DrawDownFrame(CDC *pDC, LPRECT pRect);   
   
// Implementation
public:
   virtual ~CMapColorBtn();
   virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);

protected:
   // Generated message map functions
   //{{AFX_MSG(CMapColorBtn)
   //}}AFX_MSG
   DECLARE_MESSAGE_MAP()
};

