home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / include2 / v / vfontsel.h < prev    next >
C/C++ Source or Header  |  1999-01-07  |  1KB  |  49 lines

  1. //===============================================================
  2. // vfontsel.h - font select modal dialog - Windows
  3. //
  4. // Copyright (C) 1995,1996  Bruce E. Wampler
  5. //
  6. // This file is part of the V C++ GUI Framework, and is covered
  7. // under the terms of the GNU Library General Public License,
  8. // Version 2. This library has NO WARRANTY. See the source file
  9. // vapp.cxx for more complete information about license terms.
  10. //===============================================================
  11.  
  12. #ifndef VSELFONT_H
  13. #define VSELFONT_H
  14. #include <v/v_defs.h>
  15. #include <v/vfont.h>
  16.  
  17.  
  18.   class V_EXPORT vApp;
  19.   class V_EXPORT vBaseWindow;
  20.  
  21.   class V_EXPORT vFontSelect
  22.   {
  23.     public:  //---------------------------------------- public
  24.       vFontSelect(vBaseWindow* bw, VCONST char* title = "Select Font");
  25.       vFontSelect(vApp* aw, VCONST char* title = "Select Font");
  26.       ~vFontSelect() {}
  27.  
  28.       int FontSelect(vFont& font, const char* msg = "Select Font" );
  29.  
  30.     protected:  //--------------------------------------- protected
  31.  
  32.     private:  //--------------------------------------- private
  33.  
  34.       // assumed to be used correctly for font preloading
  35.       void LoadFat(vFontID vfam, vFontID vstyle, vFontID vweight, int isFromFntDlg, int pointSize);
  36.       void LoadBitmapFont( int pointSize );
  37.  
  38.       HWND _parentHWND;
  39.       CHAR *_title;
  40.  
  41.       FONTDLG _fdlg;
  42.       CHAR _familyName[FACESIZE] ;
  43.       FATTRS  _fat;
  44.  
  45.       void init();
  46.   };
  47.  
  48. #endif
  49.