Sign in to follow this  

Bring life to a List View control ( NM_RETURN not working ?!)

This topic is 4686 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 ?
	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]

Share this post


Link to post
Share on other sites

This topic is 4686 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this