Automation:
IMultiSelection
CreateEmptySelection
(
)
;
Native (C++):
HRESULT
CreateEmptySelection
(
[out, retval]
IMultiSelection * *
pSel)
;
Parameters
pSelPointer to a variable that receives a pointer to the IMultiSelection interface of created multiple selection object.Return Value
Automation:
Returns the newly created .Native:
S_OK or standard OLE error code.
Examples
Creating an empty selection object
C++Copy Code
// pFileDocument is obtained elsewhere
IMultiSelection *pMultiSelection = NULL;
if (SUCCEEDED(pFileDocument->CreateEmptySelection(&pMultiSelection)))
{
// work with a selection
pMultiSelection->Release(); // release object
}
See Also