|
-
March 30th, 1999, 02:25 PM
#1
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]
-
March 31st, 1999, 08:42 AM
#2
Re: CListCtrl : Anchor/Freeze Rows in a list control
Check out the Listview Control area of this site.
Dave
-
March 31st, 1999, 01:03 PM
#3
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
-
April 1st, 1999, 03:54 AM
#4
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
-
April 1st, 1999, 04:14 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|