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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft