ListView and overrided WndProc

  • Thread starter Thread starter Cyrille Giquello
  • Start date Start date
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
 
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.
 
Back
Top