CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 1999
    Posts
    2

    CListCtrl : Anchor/Freeze Rows in a list control



    Does anyone know how to anchor rows in a list control. I'm trying to show totals in the last visible row in the list control and want to be able to show these rows always.

    I'd highly appreciate some sample code.


    Thank you,

    [email protected]

  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: CListCtrl : Anchor/Freeze Rows in a list control



    Check out the Listview Control area of this site.


    Dave

  3. #3
    Join Date
    Mar 1999
    Posts
    2

    Re: CListCtrl : Anchor/Freeze Rows in a list control



    No obvious articles about anchoring found. Could you pls provide a link to the article.


    sethi

  4. #4
    Join Date
    Apr 1999
    Posts
    383

    Re: CListCtrl : Anchor/Freeze Rows in a list control



    Apologies, I misread your post as wanting to freeze columns, not rows. Sorry, my mistake.


    I think you'll have to make your list control owner-drawn, and check for when the last visible row is being drawn in the DrawItem procedure, then draw the frozen row(s) where they are required.


    The article on owner draw list controls and the article on 'Selection Highlighting of Entire Row' between them detail how to draw the rows of an owner draw list control.


    Dave

  5. #5
    Join Date
    Apr 1999
    Posts
    1

    Re: CListCtrl : Anchor/Freeze Rows in a list control



    I suggest using the CGridWnd control found on this site. It offers greater control for things like frozen columns. I'm not sure if it does frozen rows. It's a great piece of work.



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