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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CListCtrl + InsertColumn

CListCtrl + InsertColumn

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelptutorialquestion
3 Posts 2 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
    KKR
    wrote on last edited by
    #1

    I kept a CListCtrl in my application and inserting columns by picking up column captions by parsing from a flat file . The problem is InsertColumn method is inserting a cloumn but not displaying column caption ?? Rest of the columns are fine and no pronlem with Inserting items. How to get the first coulmn name displayed?? thanks in advance Warm Regards, KKRam

    J 1 Reply Last reply
    0
    • K KKR

      I kept a CListCtrl in my application and inserting columns by picking up column captions by parsing from a flat file . The problem is InsertColumn method is inserting a cloumn but not displaying column caption ?? Rest of the columns are fine and no pronlem with Inserting items. How to get the first coulmn name displayed?? thanks in advance Warm Regards, KKRam

      J Offline
      J Offline
      Jagadeesh VN
      wrote on last edited by
      #2

      Use the LVCFMT_LEFT attribute while inserting headings, and also give the correct width required for the column to display the heading. "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."

      K 1 Reply Last reply
      0
      • J Jagadeesh VN

        Use the LVCFMT_LEFT attribute while inserting headings, and also give the correct width required for the column to display the heading. "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."

        K Offline
        K Offline
        KKR
        wrote on last edited by
        #3

        Thanks Jagadeesh, I am done with that CListCtrl using that Attribute., Warm Regards, KKR

        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