Click here to Skip to main content
11,798,866 members (74,873 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: MFC ListControl header
Am not able to drag the column header in list control whats is the issue with it??

can any one help me regarding this...
Posted 28-Apr-13 20:19pm
Jochen Arndt at 29-Apr-13 3:11am
What do you mean by drag? Reordering the columns or changing the column size?

Reordering of report list columns is enabled by setting the extended style LVS_EX_HEADERDRAGDROP of the list control:
SetExtendedStyle(GetExtendedStyle() | LVS_EX_HEADERDRAGDROP);
p.uday kishore at 29-Apr-13 3:28am
to change column size am unable to drag the header..
Jochen Arndt at 29-Apr-13 3:45am
As far as I know the resizing feature is always enabled. But it may be disabled by two methods:

1. Removing the HDS_DIVIDERTRACK style for the header control or using a subclassed header control that did not have this flag set.

2. Handling the HDN_ITEMCHANGING notification and returning TRUE.

Did you have done one of the above?

Also, does the cursor change when moving the mouse over the dibider area?
p.uday kishore at 29-Apr-13 5:12am
nothing as above two methods.and the cursor is changing bt cant drag to change..
Jochen Arndt at 29-Apr-13 5:51am
I forgot one more handler:
When a HDN_BEGINTRACK handler exists and returns TRUE, tracking of the divider is prevented.

You may check whether the problem is specific to your list control or your application by adding another report list somewhere and see if it shows the same behaviour.
p.uday kishore at 29-Apr-13 5:54am
that handler also not there in code anywhere.

remaining are working fine.have to check the possibilities by comparing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CPallini 505
1 OriginalGriff 503
2 Richard MacCutchan 321
3 Maciej Los 245
4 phil.o 244
0 OriginalGriff 2,270
1 Maciej Los 1,810
2 KrunalRohit 1,496
3 CPallini 1,425
4 Richard MacCutchan 1,109

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100