Click here to Skip to main content
Rate this: bad
good
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 21:19pm
Comments
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 OriginalGriff 565
1 Maciej Los 319
2 Richard MacCutchan 220
3 BillWoodruff 164
4 Mathew Soji 160
0 OriginalGriff 8,654
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,229
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2014
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