INameSpaceTreeControlEvents::OnItemClick method (shobjidl.h)
Called when the user clicks a button on the mouse.
HRESULT OnItemClick( IShellItem *psi, NSTCEHITTEST nstceHitTest, NSTCECLICKTYPE nstceClickType );
The IShellItem that was clicked.
The location on the IShellItem that was clicked. One of the following values:
The click missed the IShellItem.
The click was on the icon of the IShellItem.
The click was on the label text of the IShellItem.
The click was on the indented space on the leftmost side of the IShellItem.
The click was on the expando button of the IShellItem.
The click was on the rightmost side of the text of the IShellItem.
The click was on the state icon of the IShellItem.
The click was on the item icon or the item label or the state icon of the IShellItem.
The click was on the tab button of the IShellItem.
Indicates which button was clicked and the kind of click. One of the following values:
The left button was clicked.
The middle button was clicked.
The right button was clicked.
A button was clicked.
The click was a double click. If this value is present, it is added to one of the other values.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
If this method fails, the event is processed by both INameSpaceTreeControl and TreeView. If it returns S_OK, then only INameSpaceTreeControl will process the event.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|