Text rotation

This is a discussion on Text rotation within the Windows Programming forums, part of the Platform Specific Boards category; I'm using this: CString string=" Some Text"; dc.SetTextAlign( VTA_CENTER ); dc.TextOut( 330, 610, string ); How do I rotate a ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    20

    Question Text rotation

    I'm using this:

    CString string=" Some Text";
    dc.SetTextAlign( VTA_CENTER );
    dc.TextOut( 330, 610, string );


    How do I rotate a text?
    (For example I want the text to be vertical not horizontal)

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    20
    Also, Why the text rectangle is white?

  3. #3
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    You can alter the angle of the text by creating a font using CreateFont() and specifying the orientation and escapement parameters to the angle you require.

    To change the background colour you use SetBkColor().
    zen

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    20
    It works!
    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. camera rotation matrix
    By Vick jr in forum Game Programming
    Replies: 5
    Last Post: 05-26-2009, 09:16 AM
  2. Image rotation - doesn't always work
    By ulillillia in forum C Programming
    Replies: 12
    Last Post: 05-03-2007, 01:46 PM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  4. Scrolling The Text
    By GaPe in forum C Programming
    Replies: 3
    Last Post: 07-14-2002, 05:33 PM
  5. Replies: 1
    Last Post: 07-13-2002, 06:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21