foobar2000 SDK  2015-01-14
Public Member Functions | Data Fields
CTextControl< TClass >

#include <misc.h>

+ Inheritance diagram for CTextControl< TClass >:

Public Member Functions

 BEGIN_MSG_MAP_EX (CTextControl) MSG_WM_SETFONT(OnSetFont) MSG_WM_GETFONT(OnGetFont) MSG_WM_SETTEXT(OnSetText) CHAIN_MSG_MAP(__super) END_MSG_MAP() private
 
void OnSetFont (HFONT font, BOOL bRedraw)
 
int OnSetText (LPCTSTR lpstrText)
 
- Public Member Functions inherited from CWindowRegisteredT< TClass >
 BEGIN_MSG_MAP_EX (CWindowRegisteredT) END_MSG_MAP() static void Register()
 

Data Fields

CFontHandle m_font
 

Additional Inherited Members

- Static Public Member Functions inherited from CWindowRegisteredT< TClass >
static UINT GetClassStyle ()
 
static HCURSOR GetCursor ()
 
- Protected Member Functions inherited from CWindowRegisteredT< TClass >
virtual ~CWindowRegisteredT ()
 

Detailed Description

template<typename TClass>
class CTextControl< TClass >

Definition at line 533 of file misc.h.

Member Function Documentation

template<typename TClass>
CTextControl< TClass >::BEGIN_MSG_MAP_EX ( CTextControl< TClass >  )
inline

Definition at line 535 of file misc.h.

541  :
542  HFONT OnGetFont() {
543  return m_font;
544  }
CFontHandle m_font
Definition: misc.h:552
template<typename TClass>
void CTextControl< TClass >::OnSetFont ( HFONT  font,
BOOL  bRedraw 
)
inline

Definition at line 545 of file misc.h.

545  {
546  m_font = font;
547  if (bRedraw) Invalidate();
548  }
CFontHandle m_font
Definition: misc.h:552
template<typename TClass>
int CTextControl< TClass >::OnSetText ( LPCTSTR  lpstrText)
inline

Definition at line 549 of file misc.h.

549  {
550  Invalidate();SetMsgHandled(FALSE); return 0;
551  }

Field Documentation

template<typename TClass>
CFontHandle CTextControl< TClass >::m_font

Definition at line 552 of file misc.h.


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