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 >
Wrap
C/C++ Source or Header
|
1999-01-07
|
1KB
|
49 lines
//===============================================================
// vfontsel.h - font select modal dialog - Windows
//
// Copyright (C) 1995,1996 Bruce E. Wampler
//
// This file is part of the V C++ GUI Framework, and is covered
// under the terms of the GNU Library General Public License,
// Version 2. This library has NO WARRANTY. See the source file
// vapp.cxx for more complete information about license terms.
//===============================================================
#ifndef VSELFONT_H
#define VSELFONT_H
#include <v/v_defs.h>
#include <v/vfont.h>
class V_EXPORT vApp;
class V_EXPORT vBaseWindow;
class V_EXPORT vFontSelect
{
public: //---------------------------------------- public
vFontSelect(vBaseWindow* bw, VCONST char* title = "Select Font");
vFontSelect(vApp* aw, VCONST char* title = "Select Font");
~vFontSelect() {}
int FontSelect(vFont& font, const char* msg = "Select Font" );
protected: //--------------------------------------- protected
private: //--------------------------------------- private
// assumed to be used correctly for font preloading
void LoadFat(vFontID vfam, vFontID vstyle, vFontID vweight, int isFromFntDlg, int pointSize);
void LoadBitmapFont( int pointSize );
HWND _parentHWND;
CHAR *_title;
FONTDLG _fdlg;
CHAR _familyName[FACESIZE] ;
FATTRS _fat;
void init();
};
#endif