Documentation of CFont
======================
CFont is a small class to encapsulate a HFONT object in the Windows 32 API.


CFont()
-------
Creates a new DEFAULT_GUI_FONT object


CFont(HFONT hFont)
------------------
Creates a new font object with the same properties as the HFONT object


CFont(LPCTSTR lpszFontName, UINT uiSize, WORD wFontStyle)
---------------------------------------------------------
Creates a new font object with the typeface name lpszFontName the pointsize uiSize
and the font style wFontStyle, where the font style is a WORD which can consist of
the following flags

FS_DEFAULT  :  The default font style
FS_ITALIC   :  Italic style
FS_BOLD     :  Bold style
FS_UNDERLINE:  strings, displayed with this font style, are underlined
FS_STRIKEOUT:  strings, displayed with this font style, are struck out

Example: CFont* font = new CFont("Arial", 10, FS_BOLD | FS_UNDERLINE);


HFONT GetHandle()
-----------------
Returns the HFONT handle of the object


WORD GetStyle()
---------------
Returns the WORD described above.


UINT GetSize()
--------------
Returns the pointsize of the font object.


VOID GetName(LPTSTR lpszFontName, UINT uiBufSize)
-------------------------------------------------
You can receive the font's typeface name with that member function. The lpszFontName
string buffer may not be smaller (in bytes) than uiBufSize.

Example: CHAR lpszFontName[LF_FACESIZE];
         font.GetName(lpszFontName, LF_FACESIZE);


VOID SetName(LPCTSTR lpszFontName)
----------------------------------
Your CFont object will get a new typeface name and will keep any other properties.
Internally, the HFONT object is deleted and a new one is created.


VOID SetSize(UINT uiFontSize)
-----------------------------
Your CFont object will get a new pointsize and will keep any other properties.
Internally, the HFONT object is deleted and a new one is created.


VOID SetStyle(WORD wFontStyle)
------------------------------
Your CFont object will get a new font style and will keep any other properties.
Internally, the HFONT object is deleted and a new one is created.


VOID Assign(HFONT hFont)
------------------------
Your CFont object will get the same properties as the specified HFONT object.
Internally, the encapsulated HFONT object is deleted and a new one is created.


VOID Assign(CFont* font)
------------------------
The specified CFont object will be copied.


INT AssignToWindow(HWND hwnd, BOOL fRedraw)
-------------------------------------------
Sends a WM_SETFONT message to the specified window. The fRedraw parameter 
specifies whether the control should be redrawn immediately upon setting the font. 
Setting the fRedraw parameter to TRUE causes the control to redraw itself.