home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / GDIDEMO.ZIP / FONT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  702 b   |  27 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. // Font demo window header
  4.  
  5. #ifndef __FONTWINDOW_H
  6. #define __FONTWINDOW_H
  7.  
  8. #include "demobase.h"
  9.  
  10. /* Font demo constants */
  11. const int MaxNumFonts = 20; /* Maximum number of fonts to be displayed in FontDemo */
  12.  
  13. _CLASSDEF(TFontWindow)
  14.  
  15. class TFontWindow : public TBaseDemoWindow
  16. {
  17. private:
  18.          long FontsHeight, FontsWidth;
  19. public:
  20.          TFontWindow( PTWindowsObject AParent, LPSTR ATitle );
  21.          virtual void Paint(HDC PaintDC, PAINTSTRUCT& PaintInfo);
  22.          virtual void Destroy();
  23.          virtual void WMSize( TMessage& Message ) = [ WM_FIRST + WM_SIZE ];
  24. };
  25.  
  26. #endif  // ifndef __FONTWINDOW_H
  27.