News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Drag List/Check List

Started by Jackal, August 10, 2006, 09:26:32 PM

Previous topic - Next topic

bomz

Is it possible in your opinion, to change two elements of ListView by places open memory of dll process and change in the table memory addresses of data? and how it do approximately

dedndave

i am not sure i understand the question   :P

but, i think you may want something like this

1) allocate a large block of memory
2) place "entries" into the block, each entry represents a complete row in the listview
3) maintain a table of pointers - each entry in the table has the address (and maybe size) of the "entry"

now, when you want to move a row up or down, you only have to re-arrange the table of pointers
the entries, themselves, need not be moved around

it seems like a faster way to go

bomz

I want change Item by places without 'copy to memory  item data - set this memory to new Item', only change in ListView table the offset's of memory which belong to Item's

bomz

To move Item down by one position I must allocate memory, copy to memory Item data, delete Item , insert new Item in new position and set allocating memory with coping data to new Item. I want do this without copy