How can I find the width of a string...

So if i had.

"This is the text that would be in a text box."

How can I create a RECT that would have the width and height of this string.

Thanx