home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / GDIDEMO.PAK / FONTX.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  767b  |  31 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   Font demo window header
  4. //----------------------------------------------------------------------------
  5. #ifndef __FONT_H
  6. #define __FONT_H
  7.  
  8. #include "demobase.h"
  9.  
  10. // Font demo constants
  11. const int MaxNumFonts = 64; // Maximum number of fonts displayable in FontDemo
  12.  
  13. class TFontWindow : public TBaseDemoWindow {
  14.   public:
  15.     TFontWindow();
  16.    ~TFontWindow();
  17.  
  18.   protected:
  19.     void Paint(TDC&, BOOL, TRect&);
  20.     void EvSize(UINT SizeType, TSize& Size);
  21.  
  22.   private:
  23.     long    FontsHeight;
  24.     long    FontsWidth;
  25.  
  26.   DECLARE_RESPONSE_TABLE(TFontWindow);
  27.   DECLARE_CASTABLE;
  28. };
  29.  
  30. #endif
  31.