ListPrint
ListPrint is called when the user chooses the print function.
Declaration:
int __stdcall ListPrint(HWND ListWin,char* FileToPrint,char* DefPrinter,
int PrintFlags,RECT* Margins)
Description of parameters:
ListWin Hande to your list window created with
ListLoad
FileToPrint The full name of the file which needs to be printed. This is the same file as loaded with
ListLoad.
DefPrinter Name of the printer currently chosen in Total Commander. May be NULL (use default printer).
PrintFlags Currently not used (set to 0). May be used in a later version.
Margins The left, top, right and bottom margins of the print area, in MM_LOMETRIC measurement units (1/10 mm).
May be ignored.
Return value:
Return either LISTPLUGIN_OK or LISTPLUGIN_ERROR.
Notes:
You need to show a print dialog, in which the user can choose what to print, and select a different printer. See the sample plugin on how to do this!