Retrieves the information of a specified selection when multiple selections are available. You can use this inline function or explicitly send the EE_GET_MULTI_SEL message.

Editor_GetMultiSel( HWND hwnd, UINT_PTR iSel, SEL_INFO* pSelInfo );



Specifies the window handle of the view or frame of EmEditor.


Index of the selection of which the information will be retrieved. If -1 is specified, the number of selections will be returned.


Pointer to the SEL_INFO structure.

Return Values

If iSel is -1, the return value is the number of selection. Otherwise, TRUE if the specified selection information is retrieved. The return value is FALSE if the selection is not multiple selection mode or an error occurs in the function.