Re: SetTextCharacterExtra
- From: "Alex Blekhman" <tkfx.REMOVE@xxxxxxxxx>
- Date: Thu, 16 Oct 2008 18:19:20 +0200
"TOB" wrote:
You can reproduce it my creating a new Project. And replacing
the CNewView::OnDraw() with:
[...]
I succeeded to reproduce it on my system, too. I don't know what
exactly causes the problem, but these changes apparently fix it:
void CNewView::OnDraw(CDC* pDC)
{
pDC->SetMapMode(MM_HIMETRIC);
pDC->SetTextCharacterExtra(85);
pDC->SetTextAlign(TA_CENTER);
CRect r;
CString strName="1884-1922"; //does not print '-'
r.SetRect(200,-2000,8000,-3000);
pDC->ExtTextOut(r.CenterPoint().x, r.top, 0, r, strName, NULL);
....
HTH
Alex
.
- Follow-Ups:
- Re: SetTextCharacterExtra
- From: TOB
- Re: SetTextCharacterExtra
- References:
- SetTextCharacterExtra
- From: TOB
- Re: SetTextCharacterExtra
- From: Alex Blekhman
- Re: SetTextCharacterExtra
- From: TOB
- Re: SetTextCharacterExtra
- From: Alex Blekhman
- Re: SetTextCharacterExtra
- From: TOB
- SetTextCharacterExtra
- Prev by Date: Re: Recursive variadic macro
- Next by Date: Re: Quries with _RecordsetPtr
- Previous by thread: Re: SetTextCharacterExtra
- Next by thread: Re: SetTextCharacterExtra
- Index(es):
Relevant Pages
|