Click to See Complete Forum and Search --> : How to paint Header Control Item border


Robert Clark
April 15th, 1999, 05:33 PM
OK, posting again now that I am not anonymous.

I have been looking all over for some insight into how to paint the Header Control item's border. I have a sub-classed CHeaderCtrl and the rect(size) passed to the DrawItem method is correct, but then MFC magically paints the border and it does it in system colors. I want control of the colors used to draw the border, or even better the contol of painting the border period.

Does any guru out there have any ideas? I have searched this site and checked all the relevant samples, but nobody addresses border painting.