Link to home
Start Free TrialLog in
Avatar of jhav1594
jhav1594

asked on

Resiszing the header bar

Hi all.
I have a MDI application which display data in a list of Columns .

Eg, when you open MyDocuments and view the folders in Detail View, you will notice that the data is displayed under each colums.
_________________________________________________
Name       |   Size   |   Type     |               Data Modified
---------------------------------------------------------------------
My Music    ....               .....                 ................
.....            ....           .......                  ..................

Now each of the Columns can be resized by Draggin the Division back and forth (eg, division between Name and Size).

In one the windows in my app, i am unable to resize the Columns .  How should i go about doing this......

Thanks
Avatar of AlexFM
AlexFM

To prevent controls resizing list control must be customized:
http://www.codeguru.com/cpp/controls/listview/columns/article.php/c1065/

Maybe program code contains something like this?
Avatar of jhav1594

ASKER

Well,
in my case i have a cutom window app and the header widths are already fixed depending on the number of colums.
Does anyone have code or point me to some code so that i can make the headers resizable during run time
it is basically a UGrid and i need to able to resize the UGrid using the mouse at run time. Right now The Grid headers are of fixed length.
Avatar of DanRollins
Are you attempting to make some other application program do this?  
Or...
Do you have the source code of this application and you want to change its behavior?
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial