uLib  User mode C/C++ extended API library for Win32 programmers.
FontDialog Class Reference

#include <uLib/StdDlg.h>

Inheritance diagram for FontDialog:

Detailed Description

Standard Font selection dialog..

The inherited CHOOSEFONT fields are used for Execute calls.
LogFont is the buffer for lpLogFont.

See also [MSDN} CHOOSEFONT, ChooseFont()

Definition at line 218 of file StdDlg.h.

Public Data

LOGFONT LogFont
 

Public Functions

 FontDialog ()
 
void SetOwner (HWND Owner, HINSTANCE hInst=NULL)
 
bool Execute ()
 
HFONT CreateFont ()
 
void SetFaceName (CSTR Face)
 
void SetTypeface (CSTR Face, WORD Points, WORD Weight, BYTE ChrSet=ANSI_CHARSET)
 
bool GetLogFontFromDC (HDC hDC)
 

Constructor & Destructor Documentation

◆ FontDialog()

FontDialog::FontDialog ( )

Definition at line 320 of file StdDlg.cpp.

Member Function Documentation

◆ SetOwner()

void FontDialog::SetOwner ( HWND  Owner,
HINSTANCE  hInst = NULL 
)

Definition at line 337 of file StdDlg.cpp.

◆ Execute()

bool FontDialog::Execute ( )
inline

Execute the standard font selection dialog.

Definition at line 243 of file StdDlg.h.

◆ CreateFont()

HFONT FontDialog::CreateFont ( )
inline

Create a font from the specifiation in LogFont.

Definition at line 247 of file StdDlg.h.

◆ SetFaceName()

void FontDialog::SetFaceName ( CSTR  Face)

Safe-copy Face name to LogFont.

Definition at line 344 of file StdDlg.cpp.

◆ SetTypeface()

void FontDialog::SetTypeface ( CSTR  Face,
WORD  Points,
WORD  Weight,
BYTE  ChrSet = ANSI_CHARSET 
)

Definition at line 349 of file StdDlg.cpp.

◆ GetLogFontFromDC()

bool FontDialog::GetLogFontFromDC ( HDC  hDC)

Get LogFont from current font in 'hDC'.

See [MSDN] GetObject, GetCurrentObject

Definition at line 357 of file StdDlg.cpp.

Member Data Documentation

◆ LogFont

LOGFONT FontDialog::LogFont

Initializer and resulting selection.

Definition at line 236 of file StdDlg.h.


The documentation for this class was generated from the following files: