---
name: "LBItemFromPt"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/LBItemFromPt"
---

# LBItemFromPt(3w)

## NAME

**LBItemFromPt** (COMCTL32.14)

## SYNOPSIS

INT LBItemFromPt\
  (\
   HWND  *hwndLB*,\
   POINT *pt*,\
   BOOL  *bAutoScroll*\
  )

## DESCRIPTION

Gets the index of the ListBox item under the specified point, scrolling if *bAutoScroll* is **TRUE** and *pt* is outside of the ListBox.

## RETURNS

The ListBox item Id if *pt* is over a list item or **-1** otherwise.

## IMPLEMENTATION

Declared in **"commctrl.h"**.

Implemented in **"dlls/comctl32/draglist.c"**.

Debug channel **"commctrl"**.
