c++ - DrawText and Text Clipping -


is there way detect when text passed drawtext has been clipped ?

i able draw text in given rectangle, (i.e. have been clipped drawtext, means user might miss important part of text).

i want height required show clipped text. appreciated.

you can use dt_calcrect flag required rectangle size. in addition, return value of function gives height of text.

from online documentation:

if function succeeds, return value height of text in logical units. if dt_vcenter or dt_bottom specified, return value offset lprect->top bottom of drawn text.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -