
/***************************************************************************
**
**    $Header:   D:/PICSLDV/SRC/LOG/VARPANE.H__   1.14   09 Jan 1997 14:26:40   ZJRD  $
**
**    $Log:   D:/PICSLDV/SRC/LOG/VARPANE.H__  $
** 
**    Rev 1.14   09 Jan 1997 14:26:40   ZJRD
** No change.
** 
**    Rev 1.13   13 Dec 1996 11:21:30   ZJRD
** No change.
** 
**    Rev 1.12   22 Nov 1996 11:02:32   ZJRD
** No change.
** 
**    Rev 1.11   11 Nov 1996 12:49:46   ZJRD
** No change.
** 
**    Rev 1.10   06 Nov 1996 13:01:46   ZJRD
** No change.
** 
**    Rev 1.9   02 Nov 1996 09:48:00   ZJRD
** No change.
** 
**    Rev 1.8   30 Oct 1996 12:50:24   ZJRD
** No change.
** 
**    Rev 1.7   28 Oct 1996 09:43:12   ZJRD
** No change.
** 
**    Rev 1.6   21 Oct 1996 09:17:26   ZJRD
** No change.
** 
**    Rev 1.5   09 Oct 1996 13:47:00   ZJRD
** No change.
** 
**    Rev 1.4   23 Sep 1996 10:35:38   ZJRD
** No change.
** 
**    Rev 1.3   06 Sep 1996 13:50:02   ZJRD
** No change.
** 
**    Rev 1.2   02 Sep 1996 11:31:08   ZJRD
** No change.
** 
**    Rev 1.1   15 Aug 1996 10:08:34   ZJRD
** No change.
** 
**    Rev 1.0   13 Aug 1996 09:19:38   ZJRD
** 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 ////////////////////////////////
