
/***************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/SHLMSGBR.H__   1.2.1.4   17 Apr 1997 15:59:08   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/SHLMSGBR.H__  $
** 
**    Rev 1.2.1.4   17 Apr 1997 15:59:08   ZJRD
** No change.
** 
**    Rev 1.2.1.3   16 Apr 1997 10:31:02   ZJRD
** No change.
** 
**    Rev 1.2.1.2   10 Apr 1997 15:41:12   ZJRD
** No change.
** 
**    Rev 1.2.1.1   03 Apr 1997 15:19:48   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:24:32   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:34:34   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:49:24   ZJRD
** Initial revision.
** 
**    Rev 1.7.1.0.1.2   09 Dec 1996 10:16:10   ZJRD
** EasyPack/SLD Version 2.0P
** 
**    Rev 1.7.1.0.1.0   11 Nov 1996 12:59:26   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.7.1.4   09 Sep 1996 13:18:12   ZJRD
** No change.
** 
**    Rev 1.7.1.3   05 Sep 1996 11:29:44   ZJRD
** No change.
** 
**    Rev 1.7.1.2   02 Sep 1996 09:56:48   ZJRD
** No change.
** 
**    Rev 1.7.1.1   28 Aug 1996 15:51:18   ZJRD
** No change.
** 
**    Rev 1.7.1.0   12 Aug 1996 10:55:00   ZJRD
** EasyPack/SLD Version 1.98
** 
**    Rev 1.7   11 Jun 1996 10:30:08   ZJRD
** EasyPack/SLD Version 1.97
** 
**    Rev 1.5   05 Jun 1996 14:58:46   ZJRD
** No change.
** 
**    Rev 1.4   29 May 1996 09:31:18   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:04:34   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:13:26   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:24:02   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.31   18 Apr 1996 12:53:08   Shirley
** No change.
** 
**    Rev 1.30   12 Apr 1996 10:39:56   Shirley
** EasyPack/SLD Version 1.90
** 
**    Rev 1.28   15 Feb 1996 08:53:36   Shirley
** No change.
** 
**    Rev 1.27   12 Feb 1996 14:08:54   Shirley
** No change.
** 
**    Rev 1.26   06 Feb 1996 15:35:18   Shirley
** No change.
** 
**    Rev 1.25   06 Feb 1996 13:49:36   Shirley
** No change.
** 
**    Rev 1.24   01 Feb 1996 10:14:04   Shirley
** No change.
** 
**    Rev 1.23   26 Jan 1996 09:19:58   Shirley
** No change.
** 
**    Rev 1.22   25 Jan 1996 13:19:52   Shirley
** No change.
** 
**    Rev 1.21   24 Jan 1996 10:36:10   Shirley
** No change.
** 
**    Rev 1.20   23 Jan 1996 11:24:36   Shirley
** No change.
** 
**    Rev 1.19   18 Jan 1996 10:08:58   Shirley
** No change.
** 
**    Rev 1.18   15 Jan 1996 16:12:00   Shirley
** No change.
** 
**    Rev 1.17   04 Jan 1996 11:14:28   Shirley
** EasyPack/SLD Version 0.34
** 
**    Rev 1.16   30 Nov 1995 09:09:40   Shirley
** No change.
** 
**    Rev 1.15   28 Nov 1995 15:30:32   Shirley
** No change.
** 
**    Rev 1.14   21 Nov 1995 11:20:10   Shirley
** No change.
** 
**    Rev 1.13   13 Nov 1995 09:22:52   Shirley
** No change.
** 
**    Rev 1.12   12 Nov 1995 11:31:56   Shirley
** No change.
** 
**    Rev 1.11   08 Nov 1995 16:34:00   Shirley
** No change.
** 
**    Rev 1.10   08 Nov 1995 12:44:46   Shirley
** No change.
** 
**    Rev 1.9   02 Nov 1995 10:04:32   Shirley
** No change.
** 
**    Rev 1.8   27 Oct 1995 16:47:26   Shirley
** No change.
** 
**    Rev 1.7   27 Oct 1995 13:45:18   Shirley
** No change.
** 
**    Rev 1.6   25 Oct 1995 14:26:38   Shirley
** No change.
** 
**    Rev 1.5   18 Oct 1995 14:49:34   Shirley
** No change.
** 
**    Rev 1.4   13 Oct 1995 13:23:16   Shirley
** No change.
** 
**    Rev 1.3   29 Sep 1995 09:48:24   Shirley
** No change.
** 
**    Rev 1.2   20 Sep 1995 10:53:10   Shirley
** No change.
** 
**    Rev 1.1   15 Sep 1995 09:47:52   Shirley
** No change.
** 
**    Rev 1.0   07 Sep 1995 09:54:20   Shirley
** Initial revision.
**
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
//
//  File name:  SHLMSHBR.H
//
//  Description:The header file for the class: CMessageBar
//
//  Author:     Roger Zhang
//
//  Date:       03/18/95
//
//  Modification:
//
//      1. 03/18/95, Initial version 
//
//
//  Copyright (C) 1995 Microtek International. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _SHLMSGBR_
#define _SHLMSGBR_     

#include "shlsynco.h"

/////////////////////////////////////////////////////////////////////////////
// CMessageBar window

class CMessageBar : public CWnd
{
// Construction
public:
    CMessageBar();
    BOOL Create(LONG style, const RECT& rect, CWnd * pParent = NULL );

// Attributes
public:
    enum { IDW = IDW_MSGBAR };
    enum { SPINWD = 26 };
    enum { BARHZEDGE = 8, BARVTEDGE = 1 };
// Operations
public:
    //void ShowText(char * szText = 0);
    void ShowText(int nArgc, SynColor syncolor[]);

// Implementation
public:
    virtual ~CMessageBar();

protected:                  
    CSpinControl m_Spin;
    BOOL m_isSpinOn;
    int m_nTextPos;            
    int m_nTextLen;
    int m_nFont;    
    int m_nLen;
    CSize m_szFont;
    CPoint m_ptChar;
    char m_pszText[1024];                       
    CRect m_rectFrame;
    HINSTANCE m_hLib;                  
    
    int m_nArgc;
    SynColor m_syncolor[100];
    
    void DrawFrame(CDC * pDC, CRect &rect);
    void GetLength(void);
    BOOL CreateSpin(void);

    // Generated message map functions
    //{{AFX_MSG(CMessageBar)
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnPaint();
    afx_msg void OnSize(UINT nType, int cx, int cy);
    afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

#endif
//////////////////////////////(EOF)//////////////////////////////////////////
