Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Center text vertically

Status
Not open for further replies.

MangroBongacello

Programmer
Mar 20, 2001
189
SI
Hi!

With the DrawText API one can draw a text inside a rectangle but it can only be centered vertically if printed in single line (DT_SINGLELINE Or DT_VCENTER). If the text is wrapped into multiple lines, it gets displayed at the top of the rectangle no matter what value is assigned to wFormat parameter. Is there a way to achieve center text vertically with multiple lines?

Thank you
Mangro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top