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. clistctrl class

clistctrl class

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studioquestion
4 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.
  • J Offline
    J Offline
    Jim Overby
    wrote on last edited by
    #1

    Am trying to use the clistctrl class using c++/MFC and Microsoft Visual studio 2017. I have designed a report style control with four columns. I am unable to display columns two through four. Am using InsertColumn method to establish the columns, the insertItem method to display the first column and the SetItem method to display columns two through four. I have followed the examples from all around the internet. Only the column headers & the first column are displayed. Is there anyone out there that has gotten this to work? If so could you reference the successful code.

    V J D 3 Replies Last reply
    0
    • J Jim Overby

      Am trying to use the clistctrl class using c++/MFC and Microsoft Visual studio 2017. I have designed a report style control with four columns. I am unable to display columns two through four. Am using InsertColumn method to establish the columns, the insertItem method to display the first column and the SetItem method to display columns two through four. I have followed the examples from all around the internet. Only the column headers & the first column are displayed. Is there anyone out there that has gotten this to work? If so could you reference the successful code.

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      I use CListCtrl since two decades and never had any problem with the report style... Could you post your code?

      1 Reply Last reply
      0
      • J Jim Overby

        Am trying to use the clistctrl class using c++/MFC and Microsoft Visual studio 2017. I have designed a report style control with four columns. I am unable to display columns two through four. Am using InsertColumn method to establish the columns, the insertItem method to display the first column and the SetItem method to display columns two through four. I have followed the examples from all around the internet. Only the column headers & the first column are displayed. Is there anyone out there that has gotten this to work? If so could you reference the successful code.

        J Offline
        J Offline
        Joe Woodbury
        wrote on last edited by
        #3

        Are you calling SetItemText for each column?

        1 Reply Last reply
        0
        • J Jim Overby

          Am trying to use the clistctrl class using c++/MFC and Microsoft Visual studio 2017. I have designed a report style control with four columns. I am unable to display columns two through four. Am using InsertColumn method to establish the columns, the insertItem method to display the first column and the SetItem method to display columns two through four. I have followed the examples from all around the internet. Only the column headers & the first column are displayed. Is there anyone out there that has gotten this to work? If so could you reference the successful code.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Do you need to adjust the column width? Without showing your relevant code, it's anybody's guess.

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          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