CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2002
    Location
    Germany
    Posts
    224

    columns in CListCtrl trouble

    Hi,

    I'm having some trouble with a CListCtrl.

    when I add some lines to the bottom it should write it only to the end of the list. But somehow it starts a new column just beside the first one.
    When using the report type of ListBox it doesn't show the lines, allthough it is inserting them to the list...

    wierd!!

    Does anyone know how to switch that of?
    Or how can I tell CListCtrl that I want only one Column?

  2. #2
    Join Date
    Oct 2000
    Location
    India
    Posts
    489
    Hi
    I think you are trying to insert by using InsertColumn
    use InsertItem.

  3. #3
    Join Date
    Apr 2002
    Location
    Germany
    Posts
    224
    Nope!

    I'm using insert item!

    As long as the first column is not full he puts the one under the other but as soon as the window is full it starts on the second column which I don't want!

  4. #4
    Join Date
    May 2002
    Location
    Poland
    Posts
    48
    You have to use the report list style having one column as wide
    as the list. You can use GetClientRect() to find the width and decrease it by some number for the scrollbar to fit.
    regards,
    MiMec

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured