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