如题

解决方案 »

  1.   

    LoadImage
    The LoadImage function loads an icon, cursor, animated cursor, or bitmap.HANDLE LoadImage(
      HINSTANCE hinst,   // handle to instance
      LPCTSTR lpszName,  // name or identifier of the image
      UINT uType,        // image type
      int cxDesired,     // desired width
      int cyDesired,     // desired height
      UINT fuLoad        // load options
    );
      

  2.   

    HBITMAP hBmp=(HBITMAP)::LoadImage(
    ::AfxGetInstanceHandle(),
    "C:\\abc.bmp",
             IMAGE_BITMAP, 
             0,
             0,
             LR_LOADFROMFILE
              );
    m_Bitmap.Attach(hBmp);
    m_Brush.CreatePatternBrush(&m_Bitmap);//--------------------------