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??
[240 byte] By [amit_srms21] at [2007-11-20 11:26:28]
# 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.
juanpast at 2007-11-10 22:25:31 >
# 2 Re: Button With Bitmap
Look here: Bitmap Buttons ( http://www.dev-archive.com/cpp/controls/buttonctrl/bitmapbuttons/).

Cheers
golanshahar at 2007-11-10 22:26:25 >