FsContentGetDefaultView
FsContentGetDefaultView is called to get the default view to which Total Commander should switch when this file system plugin is entered.
Declaration:
BOOL __stdcall FsContentGetDefaultView(char* ViewContents, char* ViewHeaders, char* ViewWidths, char* ViewOptions, int maxlen);
Description of parameters:
ViewContents Return the default fields for this plugin here, e.g.
[=<fs>.size.bkM2]\n[=fs.writetime]
Note that in C, you need to write \\n to return a backslash and 'n' instead of a newline character!
ViewHeaders Return the default headers shown in the sorting header bar, e.g.
"Size\nDate/Time"
ViewWidths Return the default column widths shown in the sorting header bar, e.g.
"148,23,-35,-35"
Negative values mean that the field is right-aligned. The first two widths are for name and extension
ViewOptions The two values, separated by a vertical line, mean:
- auto-adjust-width, or -1 for no adjust
- horizontal scrollbar flag
Return value:
Return true if you returned a default view, false if no default view should be shown.
Remarks:
It's best to create a custom columns view in Total Commander, save it, and then copy the definitions from the Wincmd.ini to your plugin. The values in ViewContents and ViewHeaders are separated by a backslash and lowercase 'n' character. Note that in C, you need to write \\n to return a backslash and 'n' instead of a newline character!