How to get width and height of a TextOut ?
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
I want to print text in a Window with TextOut . I want to draw a rectangle
around this text but the text is different each time.
So i must now the width and the height in of the actual text i want to
print.
Is there a way to get this data ?
Maybe there something like a TextBox or Label with Autosizing but i can not
find it.
.
Relevant Pages
- Re: pop-forum Overlapping moving picture objects [Was: progress dots in ved]
... If *everything* gets redrawn, then all ... that matters is that objects can draw themselves. ... which is visible anywhere in the window. ... the bounding rectangle, it becomes cheap to redraw things which are ... (comp.lang.pop) - Re: how to use the GetClipBox and redraw the particular rectangle
... CRect rectUpdate; ... > actually i need to draw a rectangle in the view window.. ... > then i need to clip the rectangle and need to redraw it.. ... (microsoft.public.vc.mfc) - Re: Mouse movement within CStatic/Picture box
... over the picture box, I was wondering if you guys can suggest a method ... where I can refresh the picture box or reset the previous rectangle, ... draw a blank background rect to "fix" an empty box. ... of the other popup window will remain. ... (microsoft.public.vc.mfc) - Re: colored rectangle and scrolling form
... When I scroll ... The form is bigger than the window: ... Since you are using the window width to draw your rectangle, ... (microsoft.public.vc.mfc.docview) - Re: Mouse movement within CStatic/Picture box
... over the picture box, I was wondering if you guys can suggest a method ... where I can refresh the picture box or reset the previous rectangle, ... draw a blank background rect to "fix" an empty box. ... of the other popup window will remain. ... (microsoft.public.vc.mfc) |
|