
/***************************************************************************
**
**    $Header:   D:/EPSLDV1/SRC/LOG/GRID.H__   1.8   20 Jun 1996 09:26:12   ZJRD  $
**
**    $Log:   D:/EPSLDV1/SRC/LOG/GRID.H__  $
** 
**    Rev 1.8   20 Jun 1996 09:26:12   ZJRD
** EasyPack/SLD Version 1.20a
** 
**    Rev 1.6   10 Jun 1996 10:20:52   ZJRD
** EasyPack/SLD Version 1.20
** 
**    Rev 1.4   29 May 1996 09:30:44   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:04:00   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:12:50   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:27:46   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.31   18 Apr 1996 13:01:30   Shirley
** No change.
** 
**    Rev 1.30   12 Apr 1996 10:38:28   Shirley
** EasyPack/SLD Version 1.90
** 
**    Rev 1.28   15 Feb 1996 08:51:26   Shirley
** No change.
** 
**    Rev 1.27   12 Feb 1996 14:05:54   Shirley
** No change.
** 
**    Rev 1.26   06 Feb 1996 15:32:26   Shirley
** No change.
** 
**    Rev 1.25   06 Feb 1996 13:46:40   Shirley
** No change.
** 
**    Rev 1.24   01 Feb 1996 10:13:12   Shirley
** No change.
** 
**    Rev 1.23   26 Jan 1996 09:17:24   Shirley
** No change.
** 
**    Rev 1.22   25 Jan 1996 13:17:20   Shirley
** No change.
** 
**    Rev 1.21   24 Jan 1996 10:38:22   Shirley
** No change.
** 
**    Rev 1.20   23 Jan 1996 11:23:34   Shirley
** No change.
** 
**    Rev 1.19   18 Jan 1996 10:13:00   Shirley
** No change.
** 
**    Rev 1.18   15 Jan 1996 16:14:26   Shirley
** No change.
** 
**    Rev 1.17   04 Jan 1996 11:13:16   Shirley
** No change.
** 
**    Rev 1.16   30 Nov 1995 09:11:10   Shirley
** No change.
** 
**    Rev 1.15   28 Nov 1995 15:34:34   Shirley
** No change.
** 
**    Rev 1.14   21 Nov 1995 11:22:18   Shirley
** No change.
** 
**    Rev 1.13   13 Nov 1995 09:23:58   Shirley
** No change.
** 
**    Rev 1.12   12 Nov 1995 11:28:14   Shirley
** No change.
** 
**    Rev 1.11   08 Nov 1995 16:29:00   Shirley
** No change.
** 
**    Rev 1.10   08 Nov 1995 12:41:34   Shirley
** No change.
** 
**    Rev 1.9   02 Nov 1995 10:07:16   Shirley
** No change.
** 
**    Rev 1.8   27 Oct 1995 16:49:24   Shirley
** No change.
** 
**    Rev 1.7   27 Oct 1995 13:44:00   Shirley
** No change.
** 
**    Rev 1.6   25 Oct 1995 14:27:02   Shirley
** No change.
** 
**    Rev 1.5   18 Oct 1995 14:51:12   Shirley
** No change.
** 
**    Rev 1.4   13 Oct 1995 13:23:44   Shirley
** No change.
** 
**    Rev 1.3   29 Sep 1995 09:50:30   Shirley
** No change.
** 
**    Rev 1.2   20 Sep 1995 10:55:00   Shirley
** No change.
** 
**    Rev 1.1   15 Sep 1995 09:44:54   Shirley
** EasyPack/SLDV0.1a 
** 
**    Rev 1.0   07 Sep 1995 09:55:52   Shirley
** Initial revision.
**
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
//
//  File name:  GRID.H
//
//  Description:The header file for the class: CGrid
//
//  Author:     Lane Li
//
//  Date:       09/10/95
//
//  Modification:
//
//      1. 09/10/95, Initial version
//
//
//  Copyright (C) 1995 Microtek International. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////

class CGrid
{            
public:
// Attributes
	int m_nMinLines;
	int m_nMaxLines;
	int m_nMinRows;
	int m_nMaxRows;
	int m_nLines;
	int m_nRows;
	int m_nPosX;
	int m_nPosY;
	int m_nGridHeight;
	int m_nGridWidth;
	RECT m_rectPos; 
	char* m_lpszTitle;

// Operations         
	CGrid();
	~CGrid();

	void SetMaxLines(int);
	void SetMinLines(int);
	void SetMaxRows(int);
	void SetMinRows(int);
	void SetPos(int,int);
	void SetLines(int);
	void SetRows(int);
	void SetGridHeight(int);
	void SetGridWidth(int);
	void Show(CDC*,BOOL);
	void DeleteLines(int);
	void DeleteRows(int);
	void AddLines(int);
	void AddRows(int);
	void DoRect(); 
	void SetTitle();
	RECT GetGridRect(int,int);
	
protected:
// Attributes

// Operations

};
