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. ListCtrl: How can i make the last column visible for the user?

ListCtrl: How can i make the last column visible for the user?

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • W Offline
    W Offline
    whofmans
    wrote on last edited by
    #1

    Hi, My column in the Listcontrol don't fit on the screen, how can i make the last column visible for the user? I know the method EnsureVisible(..) but this works only for the row's. Thanks

    R 1 Reply Last reply
    0
    • W whofmans

      Hi, My column in the Listcontrol don't fit on the screen, how can i make the last column visible for the user? I know the method EnsureVisible(..) but this works only for the row's. Thanks

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      You will probably have to make use of the base class CWnd scroll functions to get the scroll range and set the scrollposition

      int min;
      int max;
      m_Ctrl.GetScrollRange(SB_HORZ, &min, &max);
      m_Ctrl.SetScrollPosition(SB_HORZ, max);

      Roger Allen Sonork 100.10016 In case you're worried about what's going to become of the younger generation, it's going to grow up and start worrying about the younger generation. - Roger Allen, but not me!

      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