static.ModifyStyle(0,SS_BITMAP );
HBITMAP hBm;
hBm= (HBITMAP)LoadImage(................)
CBitmap bm;
bm.LoadBimatp
bm.Attach(hBm);
static.SetBitmap(bm);
bm.Detach();

解决方案 »

  1.   

    LoadImage()是怎么用的,
    能不能给个例子?
    谢谢
      

  2.   

    HANDLE LoadImage(
      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);