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. Can't display column if the width is over 32767 in CListCtrl

Can't display column if the width is over 32767 in CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
6 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.
  • N Offline
    N Offline
    neil kuo
    wrote on last edited by
    #1

    HI. When i use CListCtrl in MFC and set the width of column is larger than 32767, the area of exceed couldn't display. How can I get a OnDrawItem message in CListCtrl if the width of column is larger than 32767 unit. Could someone can resolve it ? :confused: thanks.

    G 1 Reply Last reply
    0
    • N neil kuo

      HI. When i use CListCtrl in MFC and set the width of column is larger than 32767, the area of exceed couldn't display. How can I get a OnDrawItem message in CListCtrl if the width of column is larger than 32767 unit. Could someone can resolve it ? :confused: thanks.

      G Offline
      G Offline
      Gavin Taylor
      wrote on last edited by
      #2

      The list control is probobly storing the column width as an int, 32767 being the maximum value for an int theres going to be no easy way around it. Might seem like a stupid question but why the hell whould you want a column that big for anyways...? :confused: Gavin Taylor w: http://www.gavintaylor.co.uk -- modified at 1:31 Tuesday 29th November, 2005

      R 1 Reply Last reply
      0
      • G Gavin Taylor

        The list control is probobly storing the column width as an int, 32767 being the maximum value for an int theres going to be no easy way around it. Might seem like a stupid question but why the hell whould you want a column that big for anyways...? :confused: Gavin Taylor w: http://www.gavintaylor.co.uk -- modified at 1:31 Tuesday 29th November, 2005

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        Gavin Taylor wrote:

        why the hell whould you want a column that big for anyways...?

        LOL Gavin Taylor... I too do not understand, Why a column that big? Funny. Rajesh R. Subramanian, Akruti Software, Bombay, India. You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

        G N 2 Replies Last reply
        0
        • R Rajesh R Subramanian

          Gavin Taylor wrote:

          why the hell whould you want a column that big for anyways...?

          LOL Gavin Taylor... I too do not understand, Why a column that big? Funny. Rajesh R. Subramanian, Akruti Software, Bombay, India. You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

          G Offline
          G Offline
          Gavin Taylor
          wrote on last edited by
          #4

          I'd just like to have the monitor setup he's using to display it all :-D Gavin Taylor w: http://www.gavintaylor.co.uk

          1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Gavin Taylor wrote:

            why the hell whould you want a column that big for anyways...?

            LOL Gavin Taylor... I too do not understand, Why a column that big? Funny. Rajesh R. Subramanian, Akruti Software, Bombay, India. You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

            N Offline
            N Offline
            neil kuo
            wrote on last edited by
            #5

            Oh, Maybe i should say the it's a List that had many column, and the summary width of columns are over 32767, ex. 660 columns * 50 width/column. It' possible, right! I know the problem due to limit of the 16 bit, but have another way i can resolve???:doh:

            G 1 Reply Last reply
            0
            • N neil kuo

              Oh, Maybe i should say the it's a List that had many column, and the summary width of columns are over 32767, ex. 660 columns * 50 width/column. It' possible, right! I know the problem due to limit of the 16 bit, but have another way i can resolve???:doh:

              G Offline
              G Offline
              Gavin Taylor
              wrote on last edited by
              #6

              660 columns :omg:. Write your own List Control? :) Seriously, thats a HELL OF A LOT of columns to be handling all at once, if your dealing with that much data in one go i'd be thinking of designing a better UI, maybe a collapsible grid so you only show relivent information in groups or something... Just a suggestion... Gavin Taylor w: http://www.gavintaylor.co.uk

              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