INameSpaceTreeControlEvents::OnItemClick method
Called when the user clicks a button on the mouse.
Syntax
HRESULT OnItemClick( [in] IShellItem *psi, [in] NSTCEHITTEST nstceHitTest, [in] NSTCSTYLE nsctsFlags );
Parameters
- psi [in]
-
Type: IShellItem*
The IShellItem that was clicked.
- nstceHitTest [in]
-
Type: NSTCEHITTEST
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.
- nsctsFlags [in]
-
Type: NSTCSTYLE
Indicates which button was clicked and the kind of click. One of the following values:
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
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.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
See also