Makefile e.a. flink opgeschoond _CRT_SECURE_DEPRECATE verwijderd en aantal functies de _s variant gebruikt WTL van 9.0 naar 9.1 DWF Toolkit makefiles voor VS12.0 en vooral 14.0 ook committen svn path=/Slnkdwf/trunk/; revision=28366
23 lines
631 B
C++
23 lines
631 B
C++
class KTextFormator
|
|
{
|
|
enum { MaxCharNo = 256 };
|
|
|
|
double m_fCharWidth[MaxCharNo];
|
|
double m_fHeight;
|
|
double m_fLinespace;
|
|
|
|
public:
|
|
|
|
BOOL SetupPixel(HDC hDC, HFONT hFont, double pixelsize);
|
|
BOOL Setup(HDC hDC, HFONT hFont, double pointsize);
|
|
|
|
double GetLinespace(void) const
|
|
{
|
|
return m_fLinespace;
|
|
}
|
|
BOOL GetTextExtent(HDC hdc, LPCTSTR pString, int cbString, double & width, double & height);
|
|
BOOL TextOutSpacing(HDC hDC, int x, int y, LPCTSTR pString, int nCount, double dSpacing);
|
|
BOOL TextOutSize(HDC hDC, int x, int y, LPCTSTR pString, int nCount,
|
|
double dWidth, double dHeight);
|
|
};
|