Fix column size in Listview

  • Thread starter Thread starter Nang Huynh Tan
  • Start date Start date
N

Nang Huynh Tan

I want to fix-size column in listview.
How can solve this problem.
Please help me. Thank in advance!

Nang
 
You need to to cancel the Begin Drag notification that the ListView send
when a column divider start being drag. This pretty much means that you need
to setup an override of the WndProc to listen to that notification.

Regards,

Carlos H. Perez
SharpLibrary a Graphical User Interface Library for the .NET Framework
http://www.sharplibrary.com
 
But I don't know how to catch BeginDrag event

The segment code:

case 0x004E://WM_NOTIFY

Win32.NMHDR nmhdr =
(Win32.NMHDR)m.GetLParam(typeof(Win32.NMHDR));

switch(nmhdr.code)

{

case (0-300-26)://HDN_BEGINTRACK

return;

[.........]

}

break;

What is it wrong? the Columnheader don't get any event.

Please tell me.

Thank a lots.

Nang
 
Back
Top