You can use the
CDC::DrawTextEx()
function with the
DT_CALCRECT
flag set in
nFormat
and the rect you wish to draw to in
lpRect
.
This will expand the bottom of the rect to fit you multi line string.
Take a look at:
CDC::DrawTextEx()[
^]
However IMO the better explination of this function is teh corrasponding win32 function which describes the flags better, found here:
DrawTextEx()[
^]