CODFontListBox Class
class CODFontListBox: public CListBox
Font facenames owner-drawn listbox.Defined in: OdFontCompPP.h
Class Members
CODFontListBox constructor
virtual ~CODFontListBox()
CODFontListBox destructor
int AddFont(LOGFONT *, DWORD)
Adds a font to the list box.
CString GetCurrentName()
Retrieves the currently selected font facename.
ODFONTITEM_PPG* GetFontItem(int sel=-1)
Retrieves a font item for a listbox element (see alse ODFONTITEM_PPG).
LPLOGFONT GetLogFont(int sel=-1)
Retrieves logical font info for a listbox element.
DWORD GetFontType(int sel=-1)
Retrieves font type for a listbox element.
virtual void DrawItem(LPDRAWITEMSTRUCT lpDIS)
Draws font listbox items.
virtual void DeleteItem(LPDELETEITEMSTRUCT lpDIS)
Deletes an item from the font listbox.
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
Returns the measurement of a listbox item.
static void _DrawMaskedBitmap(CDC* pDC, CBitmap* pbmp, CBitmap* pbmpMask, int x, int y, int cx, int cy)
Draws a masked bitmap.
static void _InitMaskFromBitmap(CBitmap* pbmp, CBitmap* pbmpMask)
Generates a sprite mask given a bitmap.
CBitmap m_bmpTrueType
TrueType bitmap (used for listbox item drawing).
CBitmap m_bmpMask
TrueType bitmap sprite mask.