Shahzad
August 29th, 1999, 11:57 AM
I have followed a tuturial and done the following to associate a bitmap with button control. This is what has been called the automatic method.
1. First set the button style owner drawn, its ID IDC_PLAY
2. Then two bitmaps added with names PlayU and PlayD
3. CBitmapButton btnVariable declared
CBitmapButton btnVariable;
4. Autoload memeber function is called in OnInitDialog()
btnVariable.AutoLoad(IDC_PLAY, this);
Now this is supposed to display the bitmaps but it gives exception in debugg mode and run normally in release mode but the button does not show up on the dialog!
Can somebody advice, what is wrong with this procedure?
thankx
1. First set the button style owner drawn, its ID IDC_PLAY
2. Then two bitmaps added with names PlayU and PlayD
3. CBitmapButton btnVariable declared
CBitmapButton btnVariable;
4. Autoload memeber function is called in OnInitDialog()
btnVariable.AutoLoad(IDC_PLAY, this);
Now this is supposed to display the bitmaps but it gives exception in debugg mode and run normally in release mode but the button does not show up on the dialog!
Can somebody advice, what is wrong with this procedure?
thankx