Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   Inserting Icons to buttons (http://www.go4expert.com/forums/inserting-icons-buttons-t4395/)

usprasad_m 22May2007 16:50

Inserting Icons to buttons
 
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.

shabbir 22May2007 17:06

Re: Inserting Icons to buttons
 
You need to have the OnDraw / Paint method to do the same. Remember to have the button as OWNER_DRAW


All times are GMT +5.5. The time now is 20:31.