1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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,276
    Likes Received:
    364
    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