ListSearchDialog
ListSearchDialog is called when the user tries to find text in the plugin. Only implement this function if your plugin requires a plugin-specific search dialog! For searching text, please implement
ListSearchText instead!
Declaration:
int __stdcall ListSearchDialog(HWND ListWin,int FindNext);
Description of parameters:
ListWin Hande to your list window created with
ListLoad
FindNext 0: FindFirst was chosen by the user
1: FindNext was chosen from the menu
Return value:
Return LISTPLUGIN_OK if you implement this function, or LISTPLUGIN_ERROR if Total Commander should show its own text search dialog and call ListSearchText later. This allows a plugin to support both its own search method via ListSearchDialog, and the standard search method via ListSearchText! Do NOT return LISTPLUGIN_ERROR if the search fails!
Remarks:
The plugin needs to show the search dialog and highlight/select the found text by itself.
Requires Total Commander 7 or later.