怎样在ListControl里面显示位图?

解决方案 »

  1.   

    InitInstance:调用AfxOleInit()BOOL SetBkImage( LPTSTR pszUrl, BOOL fTile = TRUE, int xOffsetPercent = 0, int yOffsetPercent = 0 );
      

  2.   

    m_FriendImageList.Create(IDB_BITMAP1, 32, 0, RGB(0, 0, 0));
    m_listFriends.SetImageList(&m_FriendImageList, LVSIL_SMALL);
    m_listFriends.InsertItem(0, strName, nBmpIndex);
      

  3.   

    m_FriendImageList.Create(IDB_BITMAP1, 32, 0, RGB(0, 0, 0));
    m_listFriends.SetImageList(&m_FriendImageList, LVSIL_SMALL);
    m_listFriends.InsertItem(0, strName, nBmpIndex);