home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / CHOOSEFO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.7 KB  |  58 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1992, 1993 by Borland International
  3. //   include\owl\choosefo.h
  4. //   Definition of Choose Font Common Dialog class
  5. //----------------------------------------------------------------------------
  6. #if !defined(__OWL_CHOOSEFO_H)
  7. #define __OWL_CHOOSEFO_H
  8.  
  9. #if !defined(__COMMDIAL_H)
  10.   #include <owl\commdial.h>
  11. #endif
  12. #if !defined(__COLOR_H)
  13.   #include <owl\color.h>
  14. #endif
  15.  
  16. class _OWLCLASS TChooseFontDialog : public TCommonDialog {
  17.   public:
  18.     class _OWLCLASS TData {
  19.       public:
  20.         DWORD        Flags;
  21.         DWORD        Error;
  22.         HDC          DC;
  23.         LOGFONT      LogFont;
  24.         int          PointSize;
  25.         TColor       Color;
  26.         char far*    Style;
  27.         WORD         FontType;
  28.         int          SizeMin;
  29.         int          SizeMax;                      
  30.     };
  31.  
  32.     TChooseFontDialog(TWindow*        parent,
  33.                       TData&          data,
  34.                       TResId          templateId = 0,
  35.                       const char far* title = 0,
  36.                       TModule*        module = 0);
  37.  
  38.   protected:
  39.     CHOOSEFONT   cf;
  40.     TData&       Data;
  41.  
  42.     int     DoExecute();
  43.     BOOL    DialogFunction(UINT message, WPARAM, LPARAM);
  44.  
  45.     // Default behavior inline for message response functions
  46.     //
  47.     void    CmFontApply() {DefaultProcessing();}   // EV_COMMAND(psh3...
  48.  
  49.   private:
  50.     TChooseFontDialog(const TChooseFontDialog&);
  51.     TChooseFontDialog& operator=(const TChooseFontDialog&);
  52.  
  53.   DECLARE_RESPONSE_TABLE(TChooseFontDialog);
  54.   DECLARE_CASTABLE;
  55. };
  56.  
  57. #endif  // __OWL_CHOOSEFO_H
  58.