Link to home
Start Free TrialLog in
Avatar of alx512
alx512Flag for Russian Federation

asked on

KTextFormator of Feng Yuan

I need the example code for the class KTextFormator from the book of Feng Yuan "Windows Graphics Programming". I has this book, but miss the CD with examples. Please help!
The common task is to otput the text in ANISOTROPIC mode with the random aspect ratio.
The text must have same width in all modes on screen and printer.
I give an additional 500 points for complete help.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of alx512

ASKER

I need the code for the following methods:
KTextFormator::GetTextExtent(HDC hdc, LPCTSTR pString, int cbString, float & width, float & height);
KTextFormator::TextOut(HDC hDC, int x, int y, LPCTSTR pString, int nCount);
KTextFormator::DrawText(HDC hDC, LPCTSTR pString, int nCount, const RECT * pRect, UINT uFormat);
Avatar of alx512

ASKER

I think the another way to solve this problem is to use the gdi+.
I take the good results with graphics.DrawString method
after scaling with graphics.SetTransform.