change text label and color on dialogBox Button

Discussion in 'Win32' started by imported_chrono, Sep 7, 2007.

  1. imported_chrono

    imported_chrono New Member

    Joined:
    Sep 7, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    in my dialogBox window, I have three buttons with name labeling A,B, and C. For example if a user clicks on button A, then that button A change its label to lower case "a" with color highlighted on the button. So i wonder what function should I use to change text labeling and add color highlight on the button? I'm not using MFC and I'm new to WinAPI as well so thank in advance.
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    In Win32 you should be going for custom paint of the button and then when the click happens you change the variable of the background color of the button.
     
  3. imported_chrono

    imported_chrono New Member

    Joined:
    Sep 7, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    thanks for your reply.
     

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