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. Resizing List Control Columns

Resizing List Control Columns

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 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.
  • S Offline
    S Offline
    Scott Evans
    wrote on last edited by
    #1

    Hello All! I am perplexed and am hoping that someone out there could help me figure this out. I have an application that uses a CListCtrl. When the application window is resized, I would like to dynamically resize each of the columns to fit the view. I have had a little success, however, as the application is resizing, the horizontal scroll bar flickers on and off as the columns are being resized :(( . This happens only when I have "show window contents while dragging" enabled in Windows, when this is turned off you don't notice the problem. What I am trying to do is similar to Outlook where the columns are resized as the window is resized. Please help, as I have exhausted all resources trying to find an answer to this, but have had no success. Warm Regards, Scott Evans

    T P 2 Replies Last reply
    0
    • S Scott Evans

      Hello All! I am perplexed and am hoping that someone out there could help me figure this out. I have an application that uses a CListCtrl. When the application window is resized, I would like to dynamically resize each of the columns to fit the view. I have had a little success, however, as the application is resizing, the horizontal scroll bar flickers on and off as the columns are being resized :(( . This happens only when I have "show window contents while dragging" enabled in Windows, when this is turned off you don't notice the problem. What I am trying to do is similar to Outlook where the columns are resized as the window is resized. Please help, as I have exhausted all resources trying to find an answer to this, but have had no success. Warm Regards, Scott Evans

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      Need more detailed info - post your OnSize handler or routine you're using to change the widths. Tomasz Sowinski -- http://www.shooltz.com

      1 Reply Last reply
      0
      • S Scott Evans

        Hello All! I am perplexed and am hoping that someone out there could help me figure this out. I have an application that uses a CListCtrl. When the application window is resized, I would like to dynamically resize each of the columns to fit the view. I have had a little success, however, as the application is resizing, the horizontal scroll bar flickers on and off as the columns are being resized :(( . This happens only when I have "show window contents while dragging" enabled in Windows, when this is turned off you don't notice the problem. What I am trying to do is similar to Outlook where the columns are resized as the window is resized. Please help, as I have exhausted all resources trying to find an answer to this, but have had no success. Warm Regards, Scott Evans

        P Offline
        P Offline
        Paolo Messina
        wrote on last edited by
        #3

        Hi, It could be that you're resizing when the scrollbar has already been shown. Try to do it in OnSizing (WM_SIZING) or try to SetRedraw(FALSE) before, then SetRedraw(TRUE) after the resizing process. Hope this helps, Paolo. ------ "airplane is cool, but space shuttle is even better" (J. Kaczorowski)

        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