Gentoo69
|
Posted: Tue Jul 13, 2010 15:08 Post subject: |
|
|
Ответ Гислера:
You wrote:
Quote: | [...]
> If sorting order is by name or ext, ContentGetValueW return:
> 1. File1 FieldIndex (my fieldindex) = 0;
> 2. File1 FieldIndex (my fieldindex) = 1;
> 3. File2 FieldIndex (my fieldindex) = 0;
> 4. File2 FieldIndex (my fieldindex) = 1;
> Its work nice so I can cach last file in buffer. |
That's because Total Commander requests the fields only when it displays them.
Quote: | > But if click on my column (any), to sort it, and then enter to folder again, ContentGetValueW return:
> 1. File1 FieldIndex (my fieldindex) = 0;
> 2. File2 FieldIndex (my fieldindex) = 0;
> 3. File1 FieldIndex (my fieldindex) = 1;
> 4. File2 FieldIndex (my fieldindex) = 1; |
What happens here is that Total Commander first gets just the field by which
you are sorting (field 0). Later when the lines are displayed, Total Commander
requests the fields which have not been requested yet.
This is done because it's not a good idea to request all fields when sorting,
because the fields by which you don't currently sort may be very slow to
load.
I think that you don't need to cache the entire directory in this case, caching
by file is OK.
------------------
Мля, как же я будут кэшировать файл я не пойму?
Напишите ответ здесь, я ему отправлю. Или сами отправьте. |
|