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. List Control Header resizing problem

List Control Header resizing problem

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
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.
  • R Offline
    R Offline
    Renjith Ramachandran
    wrote on last edited by
    #1

    hello friends how can i deny the list control column resizing when we double click the header control??? mind is everything.

    C 1 Reply Last reply
    0
    • R Renjith Ramachandran

      hello friends how can i deny the list control column resizing when we double click the header control??? mind is everything.

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

      Hi there, Are these usefull? http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c1065/[^] http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c1061/[^] Cohen

      R 1 Reply Last reply
      0
      • C Cohen

        Hi there, Are these usefull? http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c1065/[^] http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c1061/[^] Cohen

        R Offline
        R Offline
        Renjith Ramachandran
        wrote on last edited by
        #3

        Cohen , THANKS FOR YOUR RESPONSE IN THAT ARTICLE THEY SAYS The header control in the ListView control sends notification to the parent window (e.i. the ListView) before it begins resizing a column. We can override the OnNotify() function in the CListCtrl derived class to handle this notification. The code below prevents resizing of all columns. Note that the resize cursor still shows up. BOOL CMyListCtrl::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { switch (((NMHDR*)lParam)->code) { case HDN_BEGINTRACKW: case HDN_BEGINTRACKA: *pResult = TRUE; // disable tracking return TRUE; // Processed message } return CListCtrl::OnNotify(wParam, lParam, pResult); } BUT DIDNT WORK WITH MY LIST CONTROL.... ANY IDEA ?????????? mind is everything.

        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