Text senkrecht schreiben
-
Ich hab mal wieder ein simple Problem.
Ich suche eine simple Möglichkeit in einem Dialog Text senkrecht zu schreiben, d.h wie in einem Kreuzworträtsel (also nicht rotieren)
Ausgabe also wie folgt:D i e s e r T e x tVielen Dank für die Hilfe
-
meine idee wäre (könnte auch funktionieren) subclassen und nach jedem char ein \n einfügen
-
Ich dachte es würde mit lfOrientation funktionieren, Tuts aber nicht, weis jemand einen Rat
You can rotate TrueType fonts at any angle. This is useful for labeling charts and other illustrations. The following example rotates a string in 10-degree increments around the center of the client area by changing the value of the lfEscapement and lfOrientation members of the LOGFONT structure used to create the font.
-
lfEscapement
Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device. The escapement vector is parallel to the base line of a row of text.
Windows NT/2000/XP: When the graphics mode is set to GM_ADVANCED, you can specify the escapement angle of the string independently of the orientation angle of the string's characters.When the graphics mode is set to GM_COMPATIBLE, lfEscapement specifies both the escapement and orientation. You should set lfEscapement and lfOrientation to the same value.
Windows 95/98/Me: The lfEscapement member specifies both the escapement and orientation. You should set lfEscapement and lfOrientation to the same value.
Probier mal, lfEscapement und lfOrientation auf denselben Wert zu setzen.
-
Mit GDI oder GDIPlus funktioniert das, ich weiß jetzt aber nicht ganz welches genau.