Weird DrawTextA!!

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi all,

I've got a lengthy string and I'm drawing it using DrawTextA with the
following format options:
DT_LEFT + DT_WORDBREAK + DT_WORD_ELLIPSIS + DT_NOCLIP

The rect is big enough to display more than 2 lines of text, but the
function draws only just 2 lines, adding an ellipsis at the end of the
second line.

Why can this happen?

Thanks,
Ivan


.



Relevant Pages

  • Re: Weird DrawTextA!!
    ... The rect is big enough to display more than 2 lines of text, ... function draws only just 2 lines, adding an ellipsis at the end of the ... Public Declare Function DrawTextA Lib "user32" (ByVal hdc As Long, ... SetBkMode lMemDC, TRANSPARENT ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Weird DrawTextA!!
    ... The rect is big enough to display more than 2 lines of text, but the function draws only just 2 lines, adding an ... ellipsis at the end of the second line. ...
    (microsoft.public.vb.winapi.graphics)
  • #### displays instead of text
    ... selected or not in the Format options. ... Widening the column doesn't solve the ...
    (microsoft.public.excel.misc)
  • Bug in StretchDIBits() ?
    ... I have a bitmap where I only display a quarter of it. ... if size of rectDest matches size of ‘rect’ then ... it behaves as if rect were rect =!!! ...
    (microsoft.public.vc.mfc)
  • Rotate Text
    ... I am using D3DXCreateFont and LPD3DXFONT (DrawTextA) to display text on the ... How do I rotate that text? ...
    (microsoft.public.win32.programmer.directx.graphics)