Hi!
The 'm_pic1' is a CStatic. But I will try it with the type "SS_BITMAP". I think I selected something like "_Control".
I have no time to test it at the moment. Can you post a code snippet where I can see how the Image/Bitmap is set to the Picture Control with CBitmap::Detach()?
Many thanks!
Tipsybroom
Main Topics
Browse All Topics





by: ZoppoPosted on 2009-08-18 at 07:24:46ID: 25123565
Hi tipsybroom,
is the 'm_pic1' a CStatic attached to the control? If so, check if the control has the style SS_BITMAP set (this can be set in the static-control's properties dialog with the combo-list 'Type:')
Further, if you use a CBitmap to load the bitmap you may have to detach the loaded bitmap from the CBitmap before the CBitmap gets deleted (i.e. if the CBitmap is a local stack instance) with CBitmap::Detach().
ZOPPO