ListView::LVN_EndLabelEdit problem
-
The MSDN says if you you return TRUE from LVN_EndLabelEdit notification, the control will accept the new edited text. It's not true for my experiments. I tried return TRUE, it didn't work, the label stays unchanged. ... BOOL OnEndLabelEidt( ..., LPNMLVDISPINFO pDispInfo) { return TRUE ; // doesn't work // so I have to do it manually LVITEM item ; ... item.pszText = pDisInfo->item.pszText ; ListView_SetItem(hListview, &item ) ; // then it works } As it isn't TRUE for any other notfications. such as TreeView::TVN_EndEditLabel. TreeView::TVN_EXPANDING returns TRUE expands the node anyway, which conflicts with the Documentation either. Could someone give me a clue? Thanks.
-
The MSDN says if you you return TRUE from LVN_EndLabelEdit notification, the control will accept the new edited text. It's not true for my experiments. I tried return TRUE, it didn't work, the label stays unchanged. ... BOOL OnEndLabelEidt( ..., LPNMLVDISPINFO pDispInfo) { return TRUE ; // doesn't work // so I have to do it manually LVITEM item ; ... item.pszText = pDisInfo->item.pszText ; ListView_SetItem(hListview, &item ) ; // then it works } As it isn't TRUE for any other notfications. such as TreeView::TVN_EndEditLabel. TreeView::TVN_EXPANDING returns TRUE expands the node anyway, which conflicts with the Documentation either. Could someone give me a clue? Thanks.
-
If you think the documentation is wrong then you should report it to Microsoft.
Veni, vidi, abiit domum
I am confused. I think there must be something wrong in my comprehension,
-
I am confused. I think there must be something wrong in my comprehension,