I cannot prevent user from editing labels in ListView
问题 According to msdn, http://msdn.microsoft.com/en-us/library/bb774798%28VS.85%29.aspx, returning TRUE prevents user from editing labels. So I wrote the code below: Main: WinMain(...) { DialogBox(..., DlgProc) } DlgProc: DlgProc(...) { switch(message) { case WM_NOTIFY: if((NMHDR *)lParam->code == LVN_BEGINLABELEDIT) { return TRUE; return FALSE; ... } Still, the labels can be edited. I dont want to cancel the style LVS_EDITLABELS, because sometimes I would like to allow the users edit labels.