Inserting Icons to buttons

Discussion in 'MFC' started by usprasad_m, May 22, 2007.

  1. usprasad_m

    usprasad_m New Member

    Joined:
    May 15, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi all.
    I want to know how to Insert icons with text on a mfc button.
    I have tried with set icon method of CButton class. But i am only able set the icon
    but i cant insert the text(caption) on the button.
    Any one please tell me how to insert both icon and text into a button.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    You need to have the OnDraw / Paint method to do the same. Remember to have the button as OWNER_DRAW
     

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