Display '&' in Static Text control.

Discussion in 'MFC' started by PrettyFlower, Jul 2, 2010.

  1. PrettyFlower

    PrettyFlower New Member

    Joined:
    Jul 1, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I have an static text control when i use to display some text in Static control,use SetWindowText

    my text is "Test & Test Project" but its display like "Test _ Test Project" or "Test Test Project".
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    & is special character and it means hot key accessible with alt.

    To display & make it &&
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice