Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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
Comments
Jochen Arndt 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 29-Apr-13 3:28am    
to change column size am unable to drag the header..
Jochen Arndt 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 29-Apr-13 5:12am    
nothing as above two methods.and the cursor is changing bt cant drag to change..
Jochen Arndt 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.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900