1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    Trophy Points:
    0
    & is special character and it means hot key accessible with alt.

    To display & make it &&
     

Share This Page