What this function (or better the API function behind it) returns is
the extent of the unrotated text. The docs for the API GetTextExtent*
functions (like GetTextExtentPoint32) have a comment in the results:
"When returning the text extent, this function assumes that the text is
horizontal, that is, that the escapement is always 0. This is true for
both the horizontal and vertical measurements of the text. Even if
using a font specifying a nonzero escapement, this function will not
use the angle while computing the text extent, the application must
convert it explicitly."
Which means that you have to rotate the output rectangle yourself to
get the rotated dimensions.
Peter Below (TeamB)
Don't be a vampire ( http://www.yqcomputer.com/
use the newsgroup archives :