|
-
August 29th, 1999, 11:57 AM
#1
Associating bitmap with Button
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|