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. show one column extra in CListControl

show one column extra in CListControl

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 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.
  • D Offline
    D Offline
    Davitor
    wrote on last edited by
    #1

    Hi All I have a CListControl and i have use SetExtendedStyle.I have InsertColumn four Column but it's showing five column.Last column is blank.How can i remove last blank column.i use like this.

    m_list.SetExtendedStyle(m_list.GetStyle()|LVS_EX_TRACKSELECT);
    m_list.InsertColumn(0, _T("Name"),LVCFMT_LEFT, 175);
    m_list.InsertColumn(1, _T("Age"),LVCFMT_LEFT, 150);
    m_list.InsertColumn(2, _T("Sex"),LVCFMT_LEFT, 150);
    m_list.InsertColumn(3, _T("Class"),LVCFMT_LEFT, 150);

    Plz help me

    R D 2 Replies Last reply
    0
    • D Davitor

      Hi All I have a CListControl and i have use SetExtendedStyle.I have InsertColumn four Column but it's showing five column.Last column is blank.How can i remove last blank column.i use like this.

      m_list.SetExtendedStyle(m_list.GetStyle()|LVS_EX_TRACKSELECT);
      m_list.InsertColumn(0, _T("Name"),LVCFMT_LEFT, 175);
      m_list.InsertColumn(1, _T("Age"),LVCFMT_LEFT, 150);
      m_list.InsertColumn(2, _T("Sex"),LVCFMT_LEFT, 150);
      m_list.InsertColumn(3, _T("Class"),LVCFMT_LEFT, 150);

      Plz help me

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

      I would change the m_list.GetStyle() to m_list.GetExtendedStyle() Gr Ronald

      1 Reply Last reply
      0
      • D Davitor

        Hi All I have a CListControl and i have use SetExtendedStyle.I have InsertColumn four Column but it's showing five column.Last column is blank.How can i remove last blank column.i use like this.

        m_list.SetExtendedStyle(m_list.GetStyle()|LVS_EX_TRACKSELECT);
        m_list.InsertColumn(0, _T("Name"),LVCFMT_LEFT, 175);
        m_list.InsertColumn(1, _T("Age"),LVCFMT_LEFT, 150);
        m_list.InsertColumn(2, _T("Sex"),LVCFMT_LEFT, 150);
        m_list.InsertColumn(3, _T("Class"),LVCFMT_LEFT, 150);

        Plz help me

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

        Does it always show one more than is being added?

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "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

        D 1 Reply Last reply
        0
        • D David Crow

          Does it always show one more than is being added?

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "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

          D Offline
          D Offline
          Davitor
          wrote on last edited by
          #4

          No Alwayes show one extra.

          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