Saturday 15 August 2015

xml - Make single items editable in a list control (C++, MFC) -



xml - Make single items editable in a list control (C++, MFC) -

i have list command (clistctrl) 2 columns (name, value). add together entries dynamically xml file. want create value-column editable , subscribe edit-event write changes xml. how this?

my code now:

lvitem item_value; item_value.iitem = row; item_value.isubitem = 1; item_value.mask = lvif_text; item_value.psztext = value; ctrl->setitem(&item_value);

placing edit command in clistctrl easier setting lvs_editlabels style. utilize editlabel() function place edit command specific item, , retrieve new text edit command using geteditcontrol() function listening notification lvn_endlabeledit.

c++ xml mfc clistctrl

No comments:

Post a Comment