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. How can I prevent the Icon in the first Row of a ListCtrl ?

How can I prevent the Icon in the first Row of a ListCtrl ?

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicshelp
5 Posts 4 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.
  • K Offline
    K Offline
    Koep
    wrote on last edited by
    #1

    Hello, i use Icon's in the SubItems of the ListControl. But i can't suppress the appearing of the Icon in the first column. I tried : LVITEM lvi= {0}; lvi.mask = LVIF_TEXT; ... lvi.iImage = -1; -> Then i get free space in the first column. or //lvi.iImage = -1; Then i get the first Bitmap. Please help !!! Marco

    R M 2 Replies Last reply
    0
    • K Koep

      Hello, i use Icon's in the SubItems of the ListControl. But i can't suppress the appearing of the Icon in the first column. I tried : LVITEM lvi= {0}; lvi.mask = LVIF_TEXT; ... lvi.iImage = -1; -> Then i get free space in the first column. or //lvi.iImage = -1; Then i get the first Bitmap. Please help !!! Marco

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

      As far as I know (i posted a thread about this here a few weeks ago), it is surprisingly _not_ possible to do that (that´s what I was told in the preceding answers. So you´ll have to put a picture everywhere, or nowhere.).:( :( If someone has a counter example, I´ll be very happy ... ~RaGE();

      R 1 Reply Last reply
      0
      • R Rage

        As far as I know (i posted a thread about this here a few weeks ago), it is surprisingly _not_ possible to do that (that´s what I was told in the preceding answers. So you´ll have to put a picture everywhere, or nowhere.).:( :( If someone has a counter example, I´ll be very happy ... ~RaGE();

        R Offline
        R Offline
        Roger Allen
        wrote on last edited by
        #3

        Why not have a blank entry in your image list and use that for the image? Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

        K 1 Reply Last reply
        0
        • R Roger Allen

          Why not have a blank entry in your image list and use that for the image? Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

          K Offline
          K Offline
          Koep
          wrote on last edited by
          #4

          Hi, because it seems that the empty Space is defined by the ImageList Settings, not by the bitmap. pImageList->Create(15, 15, ILC_MASK, 6, 4); Best regards Marco Marco

          1 Reply Last reply
          0
          • K Koep

            Hello, i use Icon's in the SubItems of the ListControl. But i can't suppress the appearing of the Icon in the first column. I tried : LVITEM lvi= {0}; lvi.mask = LVIF_TEXT; ... lvi.iImage = -1; -> Then i get free space in the first column. or //lvi.iImage = -1; Then i get the first Bitmap. Please help !!! Marco

            M Offline
            M Offline
            Mike Nordell
            wrote on last edited by
            #5

            Pick your choice: use icon or don't. If you do, it is in the first columne (because so has Microsoft said, and since they are allmighty and never publishes any source code that never has any bugs, you are basically f_cked). Perhaps some of the extended listboxes here at CP (in combination with a listcontrol) could do the trick?

            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