INameSpaceTreeControlDropHandler::OnDropPosition method
Called when the item is being dropped within the same level (within the same parent folder) in the tree.
Syntax
HRESULT OnDropPosition( [in] IShellItem *psiOver, [in] IShellItemArray *psiaData, [in] int iNewPosition, [in] int iOldPosition );
Parameters
- psiOver [in]
-
Type: IShellItem*
A pointer to an IShellItem interface representing the item underneath the mouse cursor. Optional.
- psiaData [in]
-
Type: IShellItemArray*
A pointer to an IShellItem array representing a data object.
- iNewPosition [in]
-
Type: int
The index if the item being dropped is between items; otherwise, NSTCDHPOS_ONTOP (-1).
- iOldPosition [in]
-
Type: int
Specifies old position.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Failing this method prevents the item rearrangment from happening.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: