static.ModifyStyle(0,SS_BITMAP );
HBITMAP hBm;
hBm= (HBITMAP)LoadImage(................)
CBitmap bm;
bm.LoadBimatp
bm.Attach(hBm);
static.SetBitmap(bm);
bm.Detach();
HBITMAP hBm;
hBm= (HBITMAP)LoadImage(................)
CBitmap bm;
bm.LoadBimatp
bm.Attach(hBm);
static.SetBitmap(bm);
bm.Detach();
能不能给个例子?
谢谢
HINSTANCE hinst, // handle of the instance containing the image
LPCTSTR lpszName, // name or identifier of image
UINT uType, // type of image int cxDesired, // desired width
int cyDesired, // desired height UINT fuLoad // load flags);HBITMAP hBm;
hBm=(HBITMAP) LoadImage(AfxGetApp()->m_hInstance,"d:\bitmap.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);