
Subclassing the header control inside list control
Hi,
I have created a new class with a base class of CListCtrl. Within the
class I am subclassing the header control to a CHeaderCtrlEx class
(derived from CHeaderCtrl) so that I can trap all the DrawItem messages.
This is so I can draw arrows on the toolbar to indicate by which column
I am sorting.
Both of these controls are ownerdrawn and they work perfectly in our SDI
application views. The problems arise when we are trying to use them in
a modal dialog box. The list control continues to receive the DrawItem
message but the header control doesn't, therefore not displaying the
arrows.
I have tried to trap ON_WM_DRAWITEM_REFLECT in the header control
message map to try and force the message to pass thorugh but to no
avail.
Please can someone tell me where this message is going and how I can get
hold of it!
Thanks in advance.
Anthony Rider
Rebus Insurance Systems Ltd, UK