ListView and overrided WndProc

C

Cyrille Giquello

the code is the one at page
http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=96378&Page=1#96674

Hello

from example from web i did a little code to avoiding columnHeader resize.
this code seems to work well,
but when I put a 'normal' ListView on the same Form than my overrided ListView
it seems to stop working.

if I'm resizing 'normal' ListView ColumnHeaders, then I can resizing ColumnHeaders of my overrided ListView.
If I don't resizing 'normal' ListView ColumnHeaders, then resizing of my overrided ListView ColumnHeaders is disabled.

Here is the code.
To test, create a Form, put on it a ListView and one MyListView.

To test, move the mouse on MyListView columnHeaders and you can see that resizing is disabled.
Then resize ListView columnsHeaders, then you will be able to resize MyListView columnHeaders.

It's looking like loosing the NativeWindow Handle ;o{{


cyrille
 
Y

Yura Moldavanov

Why when user setting the ListView SortOrder property the header handle
changing?

Cyrille Giquello said:
the code is the one at page
http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=96378&Page=1#96674

Hello

from example from web i did a little code to avoiding columnHeader resize.
this code seems to work well,
but when I put a 'normal' ListView on the same Form than my overrided ListView
it seems to stop working.

if I'm resizing 'normal' ListView ColumnHeaders, then I can resizing
ColumnHeaders of my overrided ListView.
If I don't resizing 'normal' ListView ColumnHeaders, then resizing of my
overrided ListView ColumnHeaders is disabled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top