# Keyword Reference

# $tagNMITEMACTIVATE

Sent by a list-view control when the user activates an item

Global Const $tagNMITEMACTIVATE = $tagNMHDR & ";int Index;int SubItem;int NewState;int OldState;" & _
"int Changed;int X;int Y;int lParam;int KeyFlags"

## Parameters

$tagNMHDR | Contains information about a notification message
Index | Index of the list-view item. If the item index is not used for the notification, this member will contain -1
SubItem | 1-based index of the subitem. If the subitem index is not used for the notification or the notification does not apply to a subitem, this member will contain zero.
NewState | New item state. This member is zero for notification messages that do not use it
OldState | Old item state. This member is zero for notification messages that do not use it
Changed | Set of flags that indicate the item attributes that have changed. This member is zero for notifications that do not use it. This member can have one or more of the following flags set: $LVIF_COLUMNS - The Columns member is valid $LVIF_DI_SETITEM - The operating system should store the requested list item information $LVIF_GROUPID - The GroupID member is valid $LVIF_IMAGE - The Image member is valid $LVIF_INDENT - The Indent member is valid $LVIF_NORECOMPUTE - The control will not generate LVN_GETDISPINFO to retrieve text information $LVIF_PARAM - The Param member is valid $LVIF_STATE - The State member is valid $LVIF_TEXT - The Text member is valid
X | Specifies the x-coordinate of the point
Y | Specifies the y-coordinate of the point
lParam | Application-defined value of the item. This member is undefined for notification messages that do not use it
KeyFlags | Modifier keys that were pressed at the time of the activation. This member contains zero or a combination of the following flags: $LVKF_ALT (1)- The key is pressed. $LVKF_CONTROL (2) - The key is pressed. $LVKF_SHIFT (4) - The key is pressed.