Re: Implementing HDS_DRAGDROP style of CHeaderCtrl
- From: "Alex Blekhman" <xfkt@xxxxxxxxx>
- Date: Fri, 23 Feb 2007 00:21:34 +0200
"neilsolent" wrote:
I want to activate the HDS_DRAGDROP style of CHeaderCtrl (which is
attached to my CListView).
However, I never call CHeaderCtrl::Create() because the creation is
done automatically when the CListView is created (so the code is
hidden from a novice like me). And CHeaderCtrl doesn't seem to have a
SetStyle() function that I can call later.
Has anyone got an example of how to do this please?
`CListCtrl' class has `SetExtendedStyle' method, which allows you to specify extended styles for list-view control. Alternatively, you can create `CListCtrl' instance with `CreateEx'. The style you need is `LVS_EX_HEADERDRAGDROP'.
HTH
Alex
.
- References:
- Implementing HDS_DRAGDROP style of CHeaderCtrl
- From: neilsolent
- Implementing HDS_DRAGDROP style of CHeaderCtrl
- Prev by Date: Re: Implementing HDS_DRAGDROP style of CHeaderCtrl
- Next by Date: Re: Why on earth are there no VC++ 2005 SP1 redists on downloads.microsoft.com?
- Previous by thread: Re: Implementing HDS_DRAGDROP style of CHeaderCtrl
- Index(es):
Relevant Pages
|