ListCtrl - Put a imagem background ??
-
How can I put a imagem in the background of a ListControl ?? The CListCtrl::SetBkImagen() function really doesn't work ?? []'s Cris.
Have you read this note ? : 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. ~RaGE();
-
Have you read this note ? : 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. ~RaGE();
-
Ok, it work well with OLE Automation support. But, I have a application. How can I "SET" this support with MS Visual Studio 6 ?? Thanks a lot ... CRIS.
In your CApplicationApp::InitInstance() put if (!AfxOleInit()) return FALSE;
-
In your CApplicationApp::InitInstance() put if (!AfxOleInit()) return FALSE;
-
Ok, thanks ... Another thing: I did put the imagem in the list background, but the list have text itens. How can I make the text be transparen too ?? []'s CRIS.
Check out http://www.codeguru.com/listview/background_image.shtml.. Good luck! :)
-
Check out http://www.codeguru.com/listview/background_image.shtml.. Good luck! :)
-
Message: "The page cannot be displayed" Any other idea ?? I need to make a COLORREF object transparent. So, I can use in the SetBkColor() function. It's possible ?? []'s
I haven't had any experience of that myself. But a quick google on 'msdn SetBkColor() transparent' gave many results.. Try checking them out.