Skip to content

Latest commit

 

History

History
76 lines (44 loc) · 2.1 KB

lvn-itemactivate.md

File metadata and controls

76 lines (44 loc) · 2.1 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
LVN_ITEMACTIVATE notification code (Commctrl.h)
Sent by a list-view control when the user activates an item. This notification code is sent in the form of a WM\_NOTIFY message.
475c8e6a-8e2e-4182-8ccc-a4bc6fc891a8
LVN_ITEMACTIVATE notification code Windows Controls
apiref
LVN_ITEMACTIVATE
Commctrl.h
HeaderDef
reference
05/31/2018

LVN_ITEMACTIVATE notification code

Sent by a list-view control when the user activates an item. This notification code is sent in the form of a WM_NOTIFY message.

LVN_ITEMACTIVATE

#if (_WIN32_IE >= 0x0400)
    lpnmia = (LPNMITEMACTIVATE)lParam;
#else
    lpnm = (LPNMHDR)lParam;
#endif

Parameters

lParam

Version 4.71. Pointer to an NMITEMACTIVATE structure that contains information about this notification code.

Version 4.70 and earlier. Pointer to an NMHDR structure that contains information about this notification code.

Return value

The application receiving this notification code must return zero.

Remarks

To obtain the items being activated, the receiving application should use the LVM_GETSELECTEDCOUNT message to retrieve the number of items that are selected and then send the LVM_GETNEXTITEM message with LVNI_SELECTED until all of the items have been retrieved.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h