ComCtl32ListBoxItemFromPoint(IntPtr, NativePoint, Boolean) Method
Retrieves the index of the item at the specified point in a list box.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ComCtl32.dll", EntryPoint = "LBItemFromPt", SetLastError = true)]
public static int ListBoxItemFromPoint(
IntPtr hWnd,
NativePoint pt,
bool autoScroll
)
<DllImportAttribute("ComCtl32.dll", EntryPoint := "LBItemFromPt", SetLastError := true>]
Public Shared Function ListBoxItemFromPoint (
hWnd As IntPtr,
pt As NativePoint,
autoScroll As Boolean
) As Integer
Dim hWnd As IntPtr
Dim pt As NativePoint
Dim autoScroll As Boolean
Dim returnValue As Integer
returnValue = ComCtl32.ListBoxItemFromPoint(hWnd,
pt, autoScroll)
public:
[DllImportAttribute(L"ComCtl32.dll", EntryPoint = L"LBItemFromPt", SetLastError = true)]
static int ListBoxItemFromPoint(
IntPtr hWnd,
NativePoint pt,
bool autoScroll
)
[<DllImportAttribute("ComCtl32.dll", EntryPoint = "LBItemFromPt", SetLastError = true)>]
static member ListBoxItemFromPoint :
hWnd : IntPtr *
pt : NativePoint *
autoScroll : bool -> int
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the list box to check.
- pt NativePoint
-
A NativePoint structure that contains the screen coordinates to check.
- autoScroll Boolean
-
If this parameter is and the point is directly above or below the list box,
the function scrolls the list box by one line and returns -1.
Otherwise, the function does not scroll the list box.
Int32
Returns the item identifier if the point is over a list item, or -1 otherwise.