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. Displaying special characters

Displaying special characters

Scheduled Pinned Locked Moved C / C++ / MFC
9 Posts 5 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.
  • M Offline
    M Offline
    mcsherry
    wrote on last edited by
    #1

    on a static text control how do you display special characters like a '&', i.e. "Time & Date Menu". cheers, Andy

    D PJ ArendsP 2 Replies Last reply
    0
    • M mcsherry

      on a static text control how do you display special characters like a '&', i.e. "Time & Date Menu". cheers, Andy

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

      SetWindowText("Time && Date Menu");


      "A good athlete is the result of a good and worthy opponent." - David Crow

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      M T 2 Replies Last reply
      0
      • D David Crow

        SetWindowText("Time && Date Menu");


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        M Offline
        M Offline
        mcsherry
        wrote on last edited by
        #3

        great, thank you

        1 Reply Last reply
        0
        • D David Crow

          SetWindowText("Time && Date Menu");


          "A good athlete is the result of a good and worthy opponent." - David Crow

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          david, can you remind me why "Time **&** Date Menu" wouldn't work ?


          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          R D 2 Replies Last reply
          0
          • T toxcct

            david, can you remind me why "Time **&** Date Menu" wouldn't work ?


            [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

            R Offline
            R Offline
            Rage
            wrote on last edited by
            #5

            Because that would underline the blank space after & as a possible key accelerator: Time  Date Menu

            Don't follow any man spiritually, don't do anything that will get you in sh*t if god is real - Bradml[^]

            T 1 Reply Last reply
            0
            • R Rage

              Because that would underline the blank space after & as a possible key accelerator: Time  Date Menu

              Don't follow any man spiritually, don't do anything that will get you in sh*t if god is real - Bradml[^]

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              ohhhh, yeah. i got it. thanks


              [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

              1 Reply Last reply
              0
              • T toxcct

                david, can you remind me why "Time **&** Date Menu" wouldn't work ?


                [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

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

                Think mnemonics.


                "A good athlete is the result of a good and worthy opponent." - David Crow

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                T 1 Reply Last reply
                0
                • D David Crow

                  Think mnemonics.


                  "A good athlete is the result of a good and worthy opponent." - David Crow

                  "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                  T Offline
                  T Offline
                  toxcct
                  wrote on last edited by
                  #8

                  DavidCrow wrote:

                  Think mnemonics.

                  Simple, yet powerful :laugh:


                  [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                  1 Reply Last reply
                  0
                  • M mcsherry

                    on a static text control how do you display special characters like a '&', i.e. "Time & Date Menu". cheers, Andy

                    PJ ArendsP Offline
                    PJ ArendsP Offline
                    PJ Arends
                    wrote on last edited by
                    #9

                    You can also use the SS_NOPREFIX style on your static control.


                    You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!

                    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