CBitmapButton
-
hi, How can we use AutoLoad() to load a bitmap for the button Thank you
-
hi, How can we use AutoLoad() to load a bitmap for the button Thank you
From The Docs: // Initialize the owner-drawn button with the id IDC_MYBUTTON as a bitmap // button. This code is used in the OnInitDialog handler of my dialog. //The button property should be set as BS_OWNERDRAW myButton.AutoLoad(IDC_MYBUTTON, this); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 5:48 Saturday 3rd June, 2006
-
From The Docs: // Initialize the owner-drawn button with the id IDC_MYBUTTON as a bitmap // button. This code is used in the OnInitDialog handler of my dialog. //The button property should be set as BS_OWNERDRAW myButton.AutoLoad(IDC_MYBUTTON, this); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 5:48 Saturday 3rd June, 2006
Hi, Thanks for your reply. I have taken a button and set the ownerdraw property and mapped it as myButton and used in InitDialog() I wrote : myButton.AutoLoad(IDC_MYBUTTON, this); But I am getting an exception in this line Please tell me how to solve it. And can you tell me a bit more abt AutoLoad() bcoz I didnt understand how the bitmaap is loaded without mentioning the resource id in it. Thank you.:)
-
Hi, Thanks for your reply. I have taken a button and set the ownerdraw property and mapped it as myButton and used in InitDialog() I wrote : myButton.AutoLoad(IDC_MYBUTTON, this); But I am getting an exception in this line Please tell me how to solve it. And can you tell me a bit more abt AutoLoad() bcoz I didnt understand how the bitmaap is loaded without mentioning the resource id in it. Thank you.:)
http://support.microsoft.com/kb/q134421/ have a look at the above link. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_