cleung
May 21st, 2004, 04:52 PM
I try to use DrawString() with the font created from CreateFontIndirect() (with lfEscapement on LOGFONT);
code:
...
lf.lfEscapement = 450;
...
HFONT hNewFont = CreateFontIndirect(&lf)
Font MyFont(pdc->m_hDC,hNewFont);
...
g.DrawString(caption[0], (INT) wcslen(caption[0]), &MyFont,pointF, & m_CaptionBrush);//& m_CaptionFormat,
...
but the text not showing rotated.
The similar code working on GDI ExtTextOut() function.
Anyone know why?
code:
...
lf.lfEscapement = 450;
...
HFONT hNewFont = CreateFontIndirect(&lf)
Font MyFont(pdc->m_hDC,hNewFont);
...
g.DrawString(caption[0], (INT) wcslen(caption[0]), &MyFont,pointF, & m_CaptionBrush);//& m_CaptionFormat,
...
but the text not showing rotated.
The similar code working on GDI ExtTextOut() function.
Anyone know why?