Bitmap not getting loaded
-
Hi, I have written a code like this: .h file ======= class CPressuresResultsPropertyPage : public CPropertyPage { CBitmapButton m_BitMapButton; }; .cpp file ========= BOOL CPressuresResultsPropertyPage::OnInitDialog() { CPropertyPage::OnInitDialog(); m_BitMapButton.AutoLoad(IDC_ROTATE,this); } After VS2005 conversion the button is not loading the bitmap IDC_ROTATE.Before that it was working properly. If the dialogs immediate base class is CDialog then it is loading the bitmap.Eventhough CPropertyPage is inherited from CDialog the bitmap is not getting loaded. Thanks.
-
Hi, I have written a code like this: .h file ======= class CPressuresResultsPropertyPage : public CPropertyPage { CBitmapButton m_BitMapButton; }; .cpp file ========= BOOL CPressuresResultsPropertyPage::OnInitDialog() { CPropertyPage::OnInitDialog(); m_BitMapButton.AutoLoad(IDC_ROTATE,this); } After VS2005 conversion the button is not loading the bitmap IDC_ROTATE.Before that it was working properly. If the dialogs immediate base class is CDialog then it is loading the bitmap.Eventhough CPropertyPage is inherited from CDialog the bitmap is not getting loaded. Thanks.
are you sure the bitmap ID is valid? Please break into CBitmapButton::AutoLoad function in debug mode and check what is the strange thing happening?
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts, An Article - Understanding Statepattern
-
are you sure the bitmap ID is valid? Please break into CBitmapButton::AutoLoad function in debug mode and check what is the strange thing happening?
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts, An Article - Understanding Statepattern
yes,bitmap id is valid.If i go into Autoload,it is returning success. Please help.It is urgent. Thanks.
-
Hi, I have written a code like this: .h file ======= class CPressuresResultsPropertyPage : public CPropertyPage { CBitmapButton m_BitMapButton; }; .cpp file ========= BOOL CPressuresResultsPropertyPage::OnInitDialog() { CPropertyPage::OnInitDialog(); m_BitMapButton.AutoLoad(IDC_ROTATE,this); } After VS2005 conversion the button is not loading the bitmap IDC_ROTATE.Before that it was working properly. If the dialogs immediate base class is CDialog then it is loading the bitmap.Eventhough CPropertyPage is inherited from CDialog the bitmap is not getting loaded. Thanks.
Did you set bitmap to true of preperty window of Button?
-
Did you set bitmap to true of preperty window of Button?
Hi, Thanks for your suggestion. Bitmap is set to false.That way it is working before VS2005 conversion.Not only that if we make the base class CDialog then tha bitmap is coming.CPropertyPage also has tha base class as CDialog. But as per the design i cannot chabge the base class to CDialog. Please suggest a solution. Regards.
-
Hi, Thanks for your suggestion. Bitmap is set to false.That way it is working before VS2005 conversion.Not only that if we make the base class CDialog then tha bitmap is coming.CPropertyPage also has tha base class as CDialog. But as per the design i cannot chabge the base class to CDialog. Please suggest a solution. Regards.
You must set bitmap to true if you want bitmap on the button but also yo can use of OwnerDraw for set bitmap and some effects to button.
-
You must set bitmap to true if you want bitmap on the button but also yo can use of OwnerDraw for set bitmap and some effects to button.
Hi, We are settignowner draw to true and then trying to load the bitmap on to the button.It was working properly before VS2005. Please help. Thanks.
-
Hi, We are settignowner draw to true and then trying to load the bitmap on to the button.It was working properly before VS2005. Please help. Thanks.
Does it work on the vs2003 and not work at vs2005?
-
Does it work on the vs2003 and not work at vs2005?
In Visual Studio 6.0 it was working.In Visual Studio 2005 it is not working.
-
In Visual Studio 6.0 it was working.In Visual Studio 2005 it is not working.
Can you show your code?