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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -