home *** CD-ROM | disk | FTP | other *** search
/ Mastering Microsoft Visual C++ 4 (2nd Edition) / VisualC4.ISO / cpp / crect1.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-26  |  542 b   |  30 lines

  1. // CRect1.h: CRectangle header file
  2.  
  3. class CRectangle
  4. {
  5. protected:
  6.    int Left;
  7.    int Top;
  8.    int Right;
  9.    int Bottom;
  10.        
  11. public:
  12.    CRectangle ()
  13.       {
  14.       Left = Top = Right = Bottom = 0;
  15.       }         
  16.    CRectangle (int L, int T, int R, int B)
  17.       {
  18.       SetCoord (L, T, R, B);
  19.       }
  20.    void Draw (void);
  21.    void GetCoord (int *L, int *T, int *R, int *B)
  22.       {
  23.       *L = Left;
  24.       *T = Top;
  25.       *R = Right;
  26.       *B = Bottom;
  27.       }
  28.    void SetCoord (int L, int T, int R, int B);
  29. };
  30.