ListSendCommand
 
ListSendCommand is called when the user changes some options in Lister's menu.
 
Declaration:
 
int __stdcall ListSendCommand(HWND ListWin,int Command,int Parameter);
 
Description of parameters:
 
ListWin Hande to your list window created with ListLoad
 
Command One of the following commands:
lc_copy Copy current selection to the clipboard
lc_newparams New parameters passed to plugin, see Parameter below
lc_selectall Select the whole contents
lc_setpercent Go to new position in document (in percent).
 
Parameter Used for lc_newparams. May be a combination of:
lcp_wraptext Text: Word wrap mode is checked
lcp_ansi Ansi charset is checked
lcp_ascii Ascii(DOS) charset is checked
lcp_variable Variable width charset is checked
lcp_fittowindow Images: Fit image to window is checked
lcp_fitlargeronly Images: Sent in addition to lcp_fittowindow if only images larger than
the client are should be resized - smaller should be shown centered
lcp_center Images: Sent when the image needs to be centered
may be combined with lcp_fittowindow and/or lcp_fitlargeronly
Also used for lc_setpercent. In this case, the value is the new position (in percent) to which to scroll.
lcp_darkmode The user interface was switched from normal to dark mode. The flag is missing when switching from dark to normal mode
lcp_darkmodenative Windows 10/11 supports dark mode natively, e.g. for scroll bars
You may ignore these parameters if they don't apply to your document type.
 
Return value:
 
Return either LISTPLUGIN_OK or LISTPLUGIN_ERROR.