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. I Need to make the CListCtrl non sortable at run time

I Need to make the CListCtrl non sortable at run time

Scheduled Pinned Locked Moved C / C++ / MFC
algorithmsdata-structuresjsonhelp
2 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.
  • J Offline
    J Offline
    Javed Akhtar Ansari
    wrote on last edited by
    #1

    Hi Dear, I need to make the report view of the list control non sortable( Disable Sorting) at run time. But i could not find out any API. I tried to set LVS_NOSORTHEADER in PreCreateWindow() but it is making the list view non sortable all the time. I need to make it Non soratble only at run time. Like if I click on a particular node in a tree view then the list view dispalyed corrresponding to that should be non sortable. Can Any body help me

    C 1 Reply Last reply
    0
    • J Javed Akhtar Ansari

      Hi Dear, I need to make the report view of the list control non sortable( Disable Sorting) at run time. But i could not find out any API. I tried to set LVS_NOSORTHEADER in PreCreateWindow() but it is making the list view non sortable all the time. I need to make it Non soratble only at run time. Like if I click on a particular node in a tree view then the list view dispalyed corrresponding to that should be non sortable. Can Any body help me

      C Offline
      C Offline
      chandu004
      wrote on last edited by
      #2

      1.first, take a separate application for test. 2.take two list controls. 3.in properties, enable sort for one control. 4.assign a member variables to both.(say m_l1,m_l2) 5.try m_l1.GetProperty() and m_l2.GetProperty(); 6.see the difference. 7.then appply the same for the required control using SetProperty();

      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