I am confused. I think there must be something wrong in my comprehension,
jackheroes
Posts
-
ListView::LVN_EndLabelEdit problem -
Need help with C++ programming.with int array, you can do the following idiom. TestScores[5] = { 99, 100, 88 } // [3],[4] are initialized with 0 with char array, in addition to the grammar above, you can wchar_t[4] = L"jac" ;
-
ListView::LVN_EndLabelEdit problemThe 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.