Sure. In fact, you can use either a bitmap, or you can associate an image list with the header control and display images from that in the header. You can have images, text, or both displayed in the header. If you feel like getting really fancy, you can even draw it yourself.
Quick start:
Use CListCtrl::GetHeaderCtrl() to retrieve a pointer to a CHeaderCtrl object. Then call CHeaderCtrl::InsertItem() (or CHeaderCtrl::SetItem() if you've already added items) to set a bitmap. If you want to use an image list, you'll need to associate it with the control first by calling CHeaderCtrl::SetImageList().
This would be absolutely perfect - if I was using VC++6. Unfortunately I'm using VC++5 (sorry, I should have mentioned this) so the only thing I can't do here is get a pointer to my header control as CListCtrl::GetHeaderCtrl() was added in V6.
If you know any other way I can get to the header control that would be great.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.