CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Vertical Text

  1. #1
    Join Date
    Apr 1999
    Posts
    396

    Vertical Text

    Anybody have some sample code that will draw vertical Text? Wanted for drawing a label on a Y axis. Thanks!


  2. #2
    Join Date
    Apr 1999
    Location
    Beaverton, OR
    Posts
    241

    Re: Vertical Text

    The easiest way that I know of to do this is to set up a LOGFONT structure in your OnPaint handler, and set its lfEscapement parameter to 900 (this value is 10ths of degrees, so 900 is 90 degrees). Select the font in, and your font will be rotated 90 degrees.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured