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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. RightJustify a widechar string

RightJustify a widechar string

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
6 Posts 4 Posters 1 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.
  • T Offline
    T Offline
    T RATHA KRISHNAN
    wrote on last edited by
    #1

    Hi! I've to display a wide char string as right justified. How to do this?

    C C 2 Replies Last reply
    0
    • T T RATHA KRISHNAN

      Hi! I've to display a wide char string as right justified. How to do this?

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      take a look at the documentation for the function you would use to draw it without justification of any kind and see if it support right-justification. if not, see DrawTextEx[^]

      image processing toolkits | batch image processing

      T 1 Reply Last reply
      0
      • C Chris Losinger

        take a look at the documentation for the function you would use to draw it without justification of any kind and see if it support right-justification. if not, see DrawTextEx[^]

        image processing toolkits | batch image processing

        T Offline
        T Offline
        T RATHA KRISHNAN
        wrote on last edited by
        #3

        Chris Losinger wrote:

        see DrawTextEx[^]

        I think this function can be used if I configured a MFC project? I'm not supposed to use MFC.

        C CPalliniC 2 Replies Last reply
        0
        • T T RATHA KRISHNAN

          Chris Losinger wrote:

          see DrawTextEx[^]

          I think this function can be used if I configured a MFC project? I'm not supposed to use MFC.

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          DrawTextEx is not an MFC function

          image processing toolkits | batch image processing

          1 Reply Last reply
          0
          • T T RATHA KRISHNAN

            Chris Losinger wrote:

            see DrawTextEx[^]

            I think this function can be used if I configured a MFC project? I'm not supposed to use MFC.

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            It is just a plain Windows API function (CDC::DrawTextEx is a MFC method). :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            • T T RATHA KRISHNAN

              Hi! I've to display a wide char string as right justified. How to do this?

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              It really depends what you are using to display the string. A string is not justified, it is just a sequence of characters. You have to draw the string somewhere in order to display it justified. How to do that really depends on what API you are using to draw or display the string. So, if you tell us how you draw the string then maybe will be able to help.

              Cédric Moonen Software developer
              Charting control [v3.0] OpenGL game tutorial in C++

              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