Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ListCtrl - Put a imagem background ??

ListCtrl - Put a imagem background ??

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cris
    wrote on last edited by
    #1

    How can I put a imagem in the background of a ListControl ?? The CListCtrl::SetBkImagen() function really doesn't work ?? []'s Cris.

    R 1 Reply Last reply
    0
    • C Cris

      How can I put a imagem in the background of a ListControl ?? The CListCtrl::SetBkImagen() function really doesn't work ?? []'s Cris.

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      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();

      C 1 Reply Last reply
      0
      • R 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();

        C Offline
        C Offline
        Cris
        wrote on last edited by
        #3

        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.

        F 1 Reply Last reply
        0
        • C Cris

          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.

          F Offline
          F Offline
          Franz Granlund 0
          wrote on last edited by
          #4

          In your CApplicationApp::InitInstance() put if (!AfxOleInit()) return FALSE;

          C 1 Reply Last reply
          0
          • F Franz Granlund 0

            In your CApplicationApp::InitInstance() put if (!AfxOleInit()) return FALSE;

            C Offline
            C Offline
            Cris
            wrote on last edited by
            #5

            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.

            F 1 Reply Last reply
            0
            • C Cris

              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.

              F Offline
              F Offline
              Franz Granlund 0
              wrote on last edited by
              #6

              Check out http://www.codeguru.com/listview/background_image.shtml.. Good luck! :)

              C 1 Reply Last reply
              0
              • F Franz Granlund 0

                Check out http://www.codeguru.com/listview/background_image.shtml.. Good luck! :)

                C Offline
                C Offline
                Cris
                wrote on last edited by
                #7

                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

                F 1 Reply Last reply
                0
                • C Cris

                  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

                  F Offline
                  F Offline
                  Franz Granlund 0
                  wrote on last edited by
                  #8

                  I haven't had any experience of that myself. But a quick google on 'msdn SetBkColor() transparent' gave many results.. Try checking them out.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups