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

/////////////////////////////////////////////////////////////////////////////
//
//  File name: VARTYPE.H
//
//  Description: The header file for the class: CVarTypeDialog.
//
//  Author: Chen Jun
//
//  Date: 07/25/95
//
//  Modification:
//      1. 07/25/95, Initial version of the class: CVarTypeDialog.
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _VARTYPE_
#define _VARTYPE_


/////////////////////////////////////////////////////////////////////////////
// CVarTypeDialog dialog

class CVarTypeDialog : public CDialog
{
// Construction
public:
    CVarTypeDialog(CWnd* pParent = NULL);   // standard constructor
    virtual ~CVarTypeDialog();

// Dialog Data
    //{{AFX_DATA(CVarTypeDialog)
    enum { IDD = IDD_DIALOG_VAR_TYPE };
    CButton m_btnOK;
    //}}AFX_DATA
    
protected:
    CString m_strType;
    
    int m_nFontWidth;
    int m_nFontHeight;

    enum {
        openWidth = 16,
        openHeight = 13,
        closeWidth = 16,
        closeHeight = 13
    };
    CBitmap m_bmpOpen;
    CBitmap m_bmpClose;

    enum {
        noSign = 0,
        openSign,
        closeSign
    };
    int m_nBmpStatus;
    
    enum {
        noError = 0,        // No error.
        insufficientMemory, // Insufficient memory.
        bmpOpen,            // Cannot load VAR_OPEN bitmap.
        bmpClose,           // Cannot load VAR_CLOSE bitmap.
        maxError = 10       // Limition of error ID.
    };
    BOOL m_nErrorID;

// Implementation
protected:
    void DisplayBitmap(CDC* pDC, const int nRow, const int nCol);
    void ClearBitmap(CDC* pDC, const int nRow, const int nCol);
    
    void DisplayErrorMessage(void) const;

protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

    // Generated message map functions
    //{{AFX_MSG(CVarTypeDialog)
    virtual void OnOK();
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnPaint();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

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