http://www.codeguru.com/listview/background_image.shtml

解决方案 »

  1.   

    Note   
    Because CListCtrl::SetBkImage makes use of OLE COM functionality, the OLE libraries must be initialized before using SetBkImage. It is best to initialize the COM libraries when the application is initialized and uninitialize the libraries when the application terminates. This is automatically done in MFC applications that make use of ActiveX technology, OLE Automation, OLE Linking/Embedding, or ODBC/DAO operations.
    所以在
    BOOL CXXXXApp::InitInstance()
    {
    AfxEnableControlContainer(); OleInitialize(NULL);//<<<添加
    ....
    }int CXXXApp::ExitInstance() 
    {
    OleUninitialize();//<<<添加 return CWinApp::ExitInstance();
    }
      

  2.   

    to prog_st(st) :加了,一点反应也没有。晕倒中……兄弟门快出招啊!我加分。
      

  3.   

    可以给例程,若需要将EMail和需要一起发个短信息给我。
      

  4.   

    我就是想在listview里设置一张初始化背景图。问题中的cworkview的基类就是
    listview。没有用到clistctl类。