Re: SetTextCharacterExtra



"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


.



Relevant Pages

  • Re: Should I add new entry in QC?
    ... procedure TForm1.FormCreate(Sender: TObject); ... Keep me posted as I have not the necessary Delphi versions to reproduce. ... It is possible that Alex is seeing something different but similar. ...
    (borland.public.delphi.non-technical)
  • Re: Hosted Word is not released with a C# add-in - update
    ... > Hi Alex, ... > I can reproduce the issue. ... > Now I am researching the issue, and I will update you with new information ... Prev by Date: ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: Should I add new entry in QC?
    ... Keep me posted as I have not the necessary Delphi versions to reproduce. ... So far, no one but Alex can reproduce it, except in CLX ... It is possible that Alex is seeing something different but similar. ...
    (borland.public.delphi.non-technical)