How do I prevent user from editing a List View item's label? MSDN says that it can be done by returning TRUE in response to a LVN_BEGINLABELEDIT notification. But this doesn't work. I have following code
in my modeless dialog box (with a List View control) procedure.Code:switch(msg) {
case WM_NOTIFY:
if (((LPNMHDR)lParam)->code == LVN_BEGINLABELEDIT) {
return TRUE;
}
break;
}
