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

    Q: CListCtrl and the CHeaderCtrl.

    I wanted to change the height of the header control that goes along with my derived CListCtrl which I use in the report mode. I accomplished this by SubClassing the header control and handling the desired new height in OnPaint of the header control. I basically just called SetWindowPos to achieve the height I wanted. The CListCtrl
    doesn't seem to know that the CHeaderCtrl is a different height and uses the old height. When I call GetItemRect in the DrawItem of my CListCtrl, it is returning the
    rect which is for the original header, I can tell this from the CRect.top member that is returned. I poked through the code for the CListCtrl( the MFC code ) and I don't
    see anything that deals with the header. Is there a way to notify the CListCtrl that the header has changed size?
    Thanks in advance,

    Dan Ramage


  2. #2
    Join Date
    Jul 2001
    Location
    Germany, near Frankfurt
    Posts
    135

    Re: Q: CListCtrl and the CHeaderCtrl.


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