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. Add/modify Columns and Rows of a CListCtrl

Add/modify Columns and Rows of a CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
1 Posts 1 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.
  • N Offline
    N Offline
    Naidu
    wrote on last edited by
    #1

    I am trying to add/modify the columns and rows of ClistCtrl, when i compile the code there are no errors but when i run the program its giving some error message 'Illeagal Operation'.. My code is as follows: for(int c=0; c< nColumnCount; c++) m_lc.DeleteColumn(0); //here m_cols is the integer value entered by the user //and m_rows is also an integer value entered by the user //m_lc is the ListControl variable if(m_cols > 0) { LV_COLUMN lvcol; lvcol.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM; lvcol.fmt = LVCFMT_LEFT; lvcol.cx = 80; CString s; for(int c=0; c

    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