
/***************************************************************************
**
**    $Header:   D:/EPSLDV1/SRC/LOG/VARPANE.H__   1.8   20 Jun 1996 09:28:46   ZJRD  $
**
**    $Log:   D:/EPSLDV1/SRC/LOG/VARPANE.H__  $
** 
**    Rev 1.8   20 Jun 1996 09:28:46   ZJRD
** EasyPack/SLD Version 1.20a
** 
**    Rev 1.6   10 Jun 1996 10:23:24   ZJRD
** EasyPack/SLD Version 1.20
** 
**    Rev 1.4   29 May 1996 09:34:40   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:00:08   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:16:40   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:31:00   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.31   18 Apr 1996 12:57:46   Shirley
** No change.
** 
**    Rev 1.30   12 Apr 1996 10:41:26   Shirley
** No change.
** 
**    Rev 1.29   02 Apr 1996 09:30:24   Shirley
** No change.
** 
**    Rev 1.28   15 Feb 1996 08:56:24   Shirley
** No change.
** 
**    Rev 1.27   12 Feb 1996 14:07:44   Shirley
** No change.
** 
**    Rev 1.26   06 Feb 1996 15:34:10   Shirley
** No change.
** 
**    Rev 1.25   06 Feb 1996 13:48:24   Shirley
** No change.
** 
**    Rev 1.24   01 Feb 1996 10:12:44   Shirley
** No change.
** 
**    Rev 1.23   26 Jan 1996 09:12:28   Shirley
** No change.
** 
**    Rev 1.22   25 Jan 1996 13:13:08   Shirley
** No change.
** 
**    Rev 1.21   24 Jan 1996 10:36:46   Shirley
** No change.
** 
**    Rev 1.20   23 Jan 1996 11:27:16   Shirley
** No change.
** 
**    Rev 1.19   18 Jan 1996 10:10:32   Shirley
** No change.
** 
**    Rev 1.18   15 Jan 1996 16:11:34   Shirley
** No change.
** 
**    Rev 1.17   04 Jan 1996 11:12:30   Shirley
** No change.
** 
**    Rev 1.16   30 Nov 1995 09:11:48   Shirley
** No change.
** 
**    Rev 1.15   28 Nov 1995 15:33:50   Shirley
** No change.
** 
**    Rev 1.14   21 Nov 1995 11:21:10   Shirley
** No change.
** 
**    Rev 1.13   13 Nov 1995 09:24:28   Shirley
** No change.
** 
**    Rev 1.12   12 Nov 1995 11:32:38   Shirley
** No change.
** 
**    Rev 1.11   08 Nov 1995 16:31:02   Shirley
** No change.
** 
**    Rev 1.10   08 Nov 1995 12:45:38   Shirley
** No change.
** 
**    Rev 1.9   02 Nov 1995 10:07:48   Shirley
** No change.
** 
**    Rev 1.8   27 Oct 1995 16:45:06   Shirley
** No change.
** 
**    Rev 1.7   27 Oct 1995 13:47:26   Shirley
** No change.
** 
**    Rev 1.6   25 Oct 1995 14:31:40   Shirley
** No change.
** 
**    Rev 1.5   18 Oct 1995 14:46:52   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:55:56   Shirley
** No change.
** 
**    Rev 1.1   15 Sep 1995 09:46:14   Shirley
** No change.
** 
**    Rev 1.0   07 Sep 1995 09:55:10   Shirley
** Initial revision.
**
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
//
//  File name: VARPANE.H
//
//  Description: The header file for the class: CVarPane.
//
//  Author: Chen Jun
//
//  Date: 07/03/95
//
//  Modification:
//      1. 07/03/95, Initial version of the class: CVarPane.
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _VARPANE_
#define _VARPANE_


/////////////////////////////////////////////////////////////////////////////
// CVarPane window

class CVarPane : public CWnd
{
// Construction
public:
    CVarPane();
    void InitialMember(void);

// Attributes
public:
    CString m_strAddress;
    CString m_strType;
    
private:
    enum { bottomHeight = 20 };

    int m_nFontWidth;
    int m_nFontHeight;

    int m_nTop;
    int m_nFirst;
    int m_nSecond;

// Operations
private:
    void DrawFrame(CDC * pDC, CRect &rect);

private:
    enum {
        noError = 0,        // No error.
        insufficientMemory, // Insufficient memory.
        maxError = 10       // Limition of error ID.
    };
    BOOL m_nErrorID;
    void DisplayErrorMessage(void) const;
    
// Implementation
public:
    virtual ~CVarPane();

public:
    // Standard overrides of MFC classes.
    virtual BOOL Create(CWnd* pParent);

protected:
    // Generated message map functions
    //{{AFX_MSG(CVarPane)
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnPaint();
    afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
    afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	//}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

#endif
//////////////////////////////// End of File ////////////////////////////////
