If you have ever used a CHeader the first thing you notice that it isn't
as nice as the one that appears at the top of list controls. What I mean
by this is that when you resize the control
Application Security Testing: An Integral Part of DevOps
all you get is a resizing line. When you move this line the header
does not update its items
as it moves only at the end when you release the button. With
a CListCtrl the headers continuously update as they move.
This functionality is cool and would be nice to have in a standard CHeader
Following is the procedure by which you can add this functionality
to your own CHeader derived classes. All you need to do is override
a couple of the mouse procedures and you are in business.
An Avi of how it works: