home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CFontHolder

   in AFXCTL.H

class CFontHolder

CFontHolder - helper class for dealing with font objects


Field Summary
protected DWORD m_dwConnectCookie
          
 LPFONT m_pFont
          
protected LPPROPERTYNOTIFYSINK m_pNotify
          
 
Constructor Summary
CFontHolder( LPPROPERTYNOTIFYSINK pNotify )
          
~CFontHolder()
          
 
Method Summary
 BOOL GetDisplayString( CString& strValue )
          
 LPFONTDISP GetFontDispatch()
          
 HFONT GetFontHandle()
          
 HFONT GetFontHandle( long cyLogical, long cyHimetric )
          
 void InitializeFont( const FONTDESC* pFontDesc = NULL, LPDISPATCH pFontDispAmbient = NULL )
          
 void QueryTextMetrics( LPTEXTMETRIC lptm )
          
 void ReleaseFont()
          
 CFont* Select( CDC* pDC, long cyLogical, long cyHimetric )
          
 void SetFont( LPFONT pNewFont )
          
 void SetFontNotifySink( LPPROPERTYNOTIFYSINK pNotify )
          
 

Field Detail

m_dwConnectCookie

protected DWORD m_dwConnectCookie;

m_pFont

public LPFONT m_pFont;

m_pNotify

protected LPPROPERTYNOTIFYSINK m_pNotify;


Constructor Detail

CFontHolder

public CFontHolder( LPPROPERTYNOTIFYSINK pNotify );

~CFontHolder

public ~CFontHolder();


Method Detail

GetDisplayString

public BOOL GetDisplayString( CString& strValue );

GetFontDispatch

public LPFONTDISP GetFontDispatch();

GetFontHandle

public HFONT GetFontHandle();

GetFontHandle

public HFONT GetFontHandle( long cyLogical, long cyHimetric );

InitializeFont

public void InitializeFont( const FONTDESC* pFontDesc = NULL, LPDISPATCH pFontDispAmbient = NULL );

QueryTextMetrics

public void QueryTextMetrics( LPTEXTMETRIC lptm );

ReleaseFont

public void ReleaseFont();

Select

public CFont* Select( CDC* pDC, long cyLogical, long cyHimetric );

SetFont

public void SetFont( LPFONT pNewFont );

SetFontNotifySink

public void SetFontNotifySink( LPPROPERTYNOTIFYSINK pNotify );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD