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 |
|
|
|
|
|
reference |
05/31/2018 |
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
-
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.
The application receiving this notification code must return zero.
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.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|