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. General Programming
  3. C / C++ / MFC
  4. Multi line support for static control

Multi line support for static control

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
5 Posts 4 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.
  • S Offline
    S Offline
    see me
    wrote on last edited by
    #1

    Hi all, How can i give multi line support for CStatic control? Please help me.:doh:

    Dream bigger... Do bigger...Expect smaller aji

    _ 1 Reply Last reply
    0
    • S see me

      Hi all, How can i give multi line support for CStatic control? Please help me.:doh:

      Dream bigger... Do bigger...Expect smaller aji

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      see me wrote:

      How can i give multi line support for CStatic control?

      Doesn't putting a "\n" in the string being displayed do the same.:^)

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      S 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        see me wrote:

        How can i give multi line support for CStatic control?

        Doesn't putting a "\n" in the string being displayed do the same.:^)

        Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        S Offline
        S Offline
        see me
        wrote on last edited by
        #3

        No... I want to do it through my code. If the Text size is greater than the static control size, i need to split the text in to two line. Hope you understand my requirement. :)

        Dream bigger... Do bigger...Expect smaller aji

        D P 2 Replies Last reply
        0
        • S see me

          No... I want to do it through my code. If the Text size is greater than the static control size, i need to split the text in to two line. Hope you understand my requirement. :)

          Dream bigger... Do bigger...Expect smaller aji

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          see me wrote:

          No... I want to do it through my code.

          Actually adding \n is the correct method. If it's not working, then you're not doing it correctly.


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          1 Reply Last reply
          0
          • S see me

            No... I want to do it through my code. If the Text size is greater than the static control size, i need to split the text in to two line. Hope you understand my requirement. :)

            Dream bigger... Do bigger...Expect smaller aji

            P Offline
            P Offline
            PJ Arends
            wrote on last edited by
            #5

            It depends on the style of your static control. SS_SIMPLE will will display the text on a single line with no wrapping. SS_LEFT, SS_CENTER, and SS_RIGHT will automatically break the string and wrap the text to the next line.


            You may be right
            I may be crazy
            -- Billy Joel --

            Within you lies the power for good, use it!!!

            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