Hi all
I have a need to print a text entered by a user on a Dc and then
draw a rectangle around the text
I know the x & y coordinate that I want to put the text, so what
I'm doing is calling to the DrawText function with the %DT_CALCRECT
flag, so I get the rectangle, then I draw the text & the rectangle.
The problem I have is that the user can change the escapement of the
Text (Print the text verticaly for example). In that case, the text
is printed out of the rectangle and I have no Idea where to draw
the rectangle around the text.
Any Idea how can I solve this problem. At least, how can I force the vertical
text to be printed inside the rectangle
TIA
Sorry, this sould be posted on pbdll forum
------------------
[This message has been edited by Gafny Jacob (edited June 21, 2001).]
I have a need to print a text entered by a user on a Dc and then
draw a rectangle around the text
I know the x & y coordinate that I want to put the text, so what
I'm doing is calling to the DrawText function with the %DT_CALCRECT
flag, so I get the rectangle, then I draw the text & the rectangle.
The problem I have is that the user can change the escapement of the
Text (Print the text verticaly for example). In that case, the text
is printed out of the rectangle and I have no Idea where to draw
the rectangle around the text.
Any Idea how can I solve this problem. At least, how can I force the vertical
text to be printed inside the rectangle
TIA
Sorry, this sould be posted on pbdll forum
------------------
[This message has been edited by Gafny Jacob (edited June 21, 2001).]
Comment