CListCtrl.SetBkImage
-
Hi,
CListCtrl.SetBkImage() macht Probleme, weil
Call this function to set the background image of a list view control.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.

Ich hab jetzt das ganze mal so geschrieben:
BOOL CAdressenApp::InitInstance() { if (!AfxOleInit()) { return FALSE; } AfxEnableControlContainer(); etc.Das reicht aber nicht.
m_pBListNames=new CBitmap; m_pBListNames->LoadBitmap(IDB_BITMAP1); m_ctlListNames.SetBkImage((HBITMAP)m_pBListNames);funktioniert nicht.
Weiß jemand Rat, wär echt nett.
Danke
-
Wenn ich mich nicht irre scheint dies für einen Reportview nicht zu gehen...