Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Listview control

tropfen
New Contributor I
314 Views
Hello,

i am using a listview control. I would like to perfom two tasks.
- reseting the content
- not allowing the sort function for columns
Is there a way to do it? ( I am using Xeffort and IVF 10)

Thanks in advance
Frank
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
314 Views
tropfen:

- reseting the content


Something which I, admittedly, didn't think about, and should be considered for the next release. You can use XCtlSendMessage(xDlg, IDC_LIST, LVM_DELETEALLITEMS, 0, 0). For virtual list-view controls, CTL_NUMITEMS zero would also work

tropfen:

- not allowing the sort function for columns


Ah, that's documented in the Overview (and hopefully works smiley [:-)] ) -- "To disable sorting altogether, use "No sort header" style (LVS_NOSORTHEADER)"
0 Kudos
Reply