Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Damn you DrawText!

Damn you DrawText!

Scheduled Pinned Locked Moved The Lounge
comtoolsquestion
11 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    peterchen
    wrote on last edited by
    #1

    DrawText doesn't do vertical text - there goes my promise for a quick cutesy hack :(


    Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
    We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
    Linkify!|Fold With Us!

    C J L N T 7 Replies Last reply
    0
    • P peterchen

      DrawText doesn't do vertical text - there goes my promise for a quick cutesy hack :(


      Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
      We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
      Linkify!|Fold With Us!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      No, but if you're using GDI+, you can use a rotate transform.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      N J 2 Replies Last reply
      0
      • P peterchen

        DrawText doesn't do vertical text - there goes my promise for a quick cutesy hack :(


        Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
        We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
        Linkify!|Fold With Us!

        J Offline
        J Offline
        joon vh
        wrote on last edited by
        #3

        What if you put a linebreak after each character? Or turn your screen 90 degrees.


        Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

        1 Reply Last reply
        0
        • P peterchen

          DrawText doesn't do vertical text - there goes my promise for a quick cutesy hack :(


          Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
          We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
          Linkify!|Fold With Us!

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          Use GDI+. Look up StringFormatFlagsDirectionVertical.

          Regards, Nish


          Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
          C++/CLI in Action (*E-Book is out, Print version April 6th*)

          1 Reply Last reply
          0
          • P peterchen

            DrawText doesn't do vertical text - there goes my promise for a quick cutesy hack :(


            Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
            We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
            Linkify!|Fold With Us!

            L Offline
            L Offline
            loket
            wrote on last edited by
            #5

            Good, my eyes do not read vertical text. ;P

            /M


            - Don't sweat the petty things, and don't pet the sweaty things.

            1 Reply Last reply
            0
            • C Christian Graus

              No, but if you're using GDI+, you can use a rotate transform.

              Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              Christian Graus wrote:

              No, but if you're using GDI+, you can use a rotate transform.

              That's not the same as vertical text. I think what he's looking for is :- H e l l o For that, he can use StringFormatFlagsDirectionVertical.

              Regards, Nish


              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
              C++/CLI in Action (*E-Book is out, Print version April 6th*)

              1 Reply Last reply
              0
              • P peterchen

                DrawText doesn't do vertical text - there goes my promise for a quick cutesy hack :(


                Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                Linkify!|Fold With Us!

                T Offline
                T Offline
                Tim Deveaux
                wrote on last edited by
                #7

                Or set the escapement on the font?

                1 Reply Last reply
                0
                • P peterchen

                  DrawText doesn't do vertical text - there goes my promise for a quick cutesy hack :(


                  Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                  We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                  Linkify!|Fold With Us!

                  S Offline
                  S Offline
                  stephen hazel
                  wrote on last edited by
                  #8

                  well, it's the FONT that sets the angle... If DrawText doesn't respond to that, I -know- that TextOut does.

                  1 Reply Last reply
                  0
                  • C Christian Graus

                    No, but if you're using GDI+, you can use a rotate transform.

                    Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                    J Offline
                    J Offline
                    Jim Crafton
                    wrote on last edited by
                    #9

                    You don't need GDI+ If you're on any NT based version of Win32 then SetWorldTransform() will do the trick as well.

                    ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Techno Silliness

                    1 Reply Last reply
                    0
                    • P peterchen

                      DrawText doesn't do vertical text - there goes my promise for a quick cutesy hack :(


                      Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                      We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                      Linkify!|Fold With Us!

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #10

                      1. Draw the text on an off-screen buffer 2. Use one of the many readily available CAPTCHA busters to find the locations of the characters within the image. 3. Reposition the characters on a new off-screen buffer in the order they were discovered, except vertically 4. BitBlt the off-screen buffer onto the screen buffer 5. Bask in the warm glow of success and admiration of your peers

                      cheers, Chris Maunder

                      CodeProject.com : C++ MVP

                      P 1 Reply Last reply
                      0
                      • C Chris Maunder

                        1. Draw the text on an off-screen buffer 2. Use one of the many readily available CAPTCHA busters to find the locations of the characters within the image. 3. Reposition the characters on a new off-screen buffer in the order they were discovered, except vertically 4. BitBlt the off-screen buffer onto the screen buffer 5. Bask in the warm glow of success and admiration of your peers

                        cheers, Chris Maunder

                        CodeProject.com : C++ MVP

                        P Offline
                        P Offline
                        peterchen
                        wrote on last edited by
                        #11

                        :-D I tried, but the captcha buster started to sneak V1agra messages in...


                        Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                        We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                        Linkify!|Fold With Us!

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups