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