Expand Minimize

ListView_InsertMarkHitTest macro

Retrieves the insertion point closest to a specified point. You can use this macro or send the LVM_INSERTMARKHITTEST message explicitly.

Syntax


BOOL ListView_InsertMarkHitTest(
  HWND hwnd,
  LPPOINT point,
  PLVINSERTMARK plvim
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

point

Type: LPPOINT

A pointer to a POINT structure that contains the hit test coordinates.
plvim

Type: PLVINSERTMARK

A pointer to an LVINSERTMARK structure that specifies the insertion point closest to the coordinates defined by the point parameter.

Return value

Returns TRUE if successful, or FALSE otherwise. Returns FALSE if the size of the LVINSERTMARK structure's cbSize member does not equal the actual size of the structure, or when an insertion point does not apply in the current view.

Remarks

To use ListView_InsertMarkHitTest, specify Comctl32.dll version 6 in the manifest. For more information on manifests, see Enabling Visual Styles.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft