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. CListCtrl Row height

CListCtrl Row height

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • N Offline
    N Offline
    Neelesh K J Jain
    wrote on last edited by
    #1

    :doh: Hello friends, how can I know the height of a row in the listview and how can i set the height of the row at the runtime dependign upon the text. Please help me regarding the above problem. Thank you in advance. Neelesh K J Jain.

    M 1 Reply Last reply
    0
    • N Neelesh K J Jain

      :doh: Hello friends, how can I know the height of a row in the listview and how can i set the height of the row at the runtime dependign upon the text. Please help me regarding the above problem. Thank you in advance. Neelesh K J Jain.

      M Offline
      M Offline
      Mike Danberg
      wrote on last edited by
      #2

      Hi, I replied to your other post about this a few days ago. Have a look at this article. http://www.codeproject.com/combobox/listboxex.asp[^] This is basically about making your own version of a control. It uses a listbox as an example, but its the same general idea with any control. The author works with height and width in it so that should help you out. Getting back to your original problem, I think that there may be an easier way to get it to display. Either there is a property in the list control that controls this or there is a function that allows the text to display. If you click on a file you'll notice that it seems to toggle the text to on, and then when you switch to another file it goes back to the "...". So I think there's a function that you can use. However, if you have a lot of text, it will overlap with images below it, so you would have to adjust the row height as well if that's the case.

      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