22 #ifndef HODJNPODJ_HNPLIBS_TEXT_H 23 #define HODJNPODJ_HNPLIBS_TEXT_H 25 #include "bagel/afxwin.h" 32 #define CTEXT_COLOR RGB(0,0,0) 33 #define CTEXT_SHADOW_COLOR RGB(0,0,0) 34 #define CTEXT_SHADOW_DX 2 35 #define CTEXT_SHADOW_DY 2 46 #define TEXT_DONTCARE 0 47 #define TEXT_THIN FW_THIN 48 #define TEXT_EXTRALIGHT FW_EXTRALIGHT 49 #define TEXT_ULTRALIGHT FW_ULTRALIGHT 50 #define TEXT_LIGHT FW_LIGHT 51 #define TEXT_NORMAL FW_NORMAL 52 #define TEXT_REGULAR FW_REGULAR 53 #define TEXT_MEDIUM FW_MEDIUM 54 #define TEXT_SEMIBOLD FW_SEMIBOLD 55 #define TEXT_DEMIBOLD FW_DEMIBOLD 56 #define TEXT_BOLD FW_BOLD 57 #define TEXT_EXTRABOLD FW_EXTRABOLD 58 #define TEXT_ULTRABOLD FW_ULTRABOLD 59 #define TEXT_BLACK FW_BLACK 60 #define TEXT_HEAVY FW_HEAVY 63 DECLARE_DYNCREATE(
CText)
70 bool SetupText(
CDC *pDC,
CPalette * pPalette,
CRect *pRect,
int nJustify = JUSTIFY_CENTER);
71 bool RestoreBackground(
CDC *pDC);
72 bool DisplayString(
CDC *pDC,
const char* pszText,
const int nSize,
const int nWeight,
const COLORREF crColor = CTEXT_COLOR);
73 bool DisplayShadowedString(
CDC *pDC,
const char* pszText,
const int nSize,
const int nWeight,
const COLORREF crColor,
const COLORREF crShadow = CTEXT_SHADOW_COLOR,
const int DX = CTEXT_SHADOW_DX,
const int DY = CTEXT_SHADOW_DY);
76 void InitializeFields();
77 bool SetupContexts(
CDC *pDC);
78 void ReleaseContexts();
79 bool DisplayText(
CDC *pDC,
const char* pszText,
const int nSize,
const int nWeight,
const bool bShadowed);
97 bool m_bHaveBackground;
98 COLORREF m_cTextColor;
99 COLORREF m_cShadowColor;
103 static int m_nTabStop;
104 static bool m_bFontLoaded;
Definition: atltypes.h:79
Definition: atltypes.h:40
Definition: atltypes.h:131