case WM_NOTIFY:
if (wParam == IDC_LIST2)
{
NMHDR* nmh = (NMHDR*)lParam;
if (nmh->code != NM_RETURN && nmh->code != NM_DBLCLK)
break;
... handle message ...
}
[Edited by - Schwammerl-Bob on February 10, 2005 3:39:03 PM]
Bring life to a List View control ( NM_RETURN not working ?!)
Hey,
I was implementing a list view control using win32 api and c++ and had to find out that it does not react on "pressing ENTER on a selected item". I figured out that it doest not receive NM_RETURN messages. However, it gets NM_DBLCLICK messages and reacts accordingly. Here´s a code snippet. Any ideas ?
You're returning "TRUE" from the containing window procedure when you handle this case, right?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement