Button With Bitmap
hi,
pl z, tell me how can i load a bitmap to a button , i have made a variable of Button of type CButton and want to use function LoadBitmapfromFile(), But it is not showing the option for function?can any one tell me where i am wrong??
# 1 Re: Button With Bitmap
Use CBitmapButton.
1) Add the bitmap to the resource.
2) Create with ClassWizard a CButton class to the control and before that open the .h file and replace CButton myButton by CBitmapButton.
3) Be sure that the button has a Owner draw style.
4) In OnInitDialog load the resource to the button.