请教

解决方案 »

  1.   

    先用LoadImage产生HBITMAP 
    HBITMAP m_hbitmap = (HBITMAP)::LoadImage(
      HINSTANCE hinst,   // handle to instance
      LPCTSTR lpszName,  // image to load
      UINT uType,        // image type
      int cxDesired,     // desired width
      int cyDesired,     // desired height
      UINT fuLoad        // load options
    );
    在将HBITMAP贴在CBitmap上即可
    CBitmap bm;
    bm.Attach(m_hbitmap )