M
mark
I want to use CBitmapButton. This class knows the function LoadBitmaps
to set a bitmap in a button.
The problem is that LoadBitmaps is asking for a Resource ID.
I have loaded the bmp file in CBitmap, but how do I get this Resource
ID now???
please help
//loading the file 'test.bmp' in CBitmap:
CBitmap bmp;
BITMAP bitmap;
BITMAP bits;
m_pHBitmap = SHLoadDIBitmap("\test\test.bmp");
bmp.Attach(m_pHBitmap);
bmp.GetBitmap(&bitmap);
//now load the bitmap, but this doesn't work!
CBitmapButton::LoadBitmaps(bmp.GetBitmap(&bitmap), 0, 0, 0 );
to set a bitmap in a button.
The problem is that LoadBitmaps is asking for a Resource ID.
I have loaded the bmp file in CBitmap, but how do I get this Resource
ID now???
please help
//loading the file 'test.bmp' in CBitmap:
CBitmap bmp;
BITMAP bitmap;
BITMAP bits;
m_pHBitmap = SHLoadDIBitmap("\test\test.bmp");
bmp.Attach(m_pHBitmap);
bmp.GetBitmap(&bitmap);
//now load the bitmap, but this doesn't work!
CBitmapButton::LoadBitmaps(bmp.GetBitmap(&bitmap), 0, 0, 0 );