List Control Delete Row on Delete Key press
<p>I have a List Control holding rows with data. Now i am trying to delete row on delete key press. I am trying with : LVN_DELETEITEM as below :</p>

<p>Afx Message :</p>

<pre><code>afx_msg void OnLvnDeleteitemList(NMHDR *pNMHDR, LRESULT *pResult);
</code></pre>

<p>Message Map:</p>

<pre><code>ON_NOTIFY(LVN_DELETEITEM, IDC_LIST_ACQUISITION_SETTINGS, &amp;MeasureDialog::OnLvnDeleteitemList)
</code></pre>

<p>Implementation of OnLvnDeleteitemList :</p>

<pre><code>void MeasureDialog::OnLvnDeleteitemList(NMHDR *pNMHDR, LRESULT *pResult)
{
  LPNMLISTVIEW pNMLV = reinterpret_cast&lt;LPNMLISTVIEW&gt;(pNMHDR);
    // TODO: Add your control notification handler code here
  ReportMessage(L"Deleted");
  *pResult = 0;
}
</code></pre>

<p>But i am never coming into the OnLvnDeleteitemList method. Whats wrong about it?</p>