Button text with shortcutkey letter (ATL)

Discussion in 'Win32' started by TiDi, Dec 19, 2007.

  1. TiDi

    TiDi New Member

    Joined:
    Dec 19, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    My first post ;-)

    I have a custom ATL object that is like a button, I want to add a shortcut to that object, so I want to set a letter with the underscore in the button label,
    for example

    Push Me

    so the u is like ALT+U shortcut (standard windows)

    now I set the text on the button with
    TextOut ( ... ) ;

    But If I put the & in from of the letter I obviously see

    P&ush Me

    any idea?

    Thanx a lot

    TiDi
     

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