The program I'm editing uses this code to generate the columns in a listbox:
m_list.InsertColumn(0,_T("Parameter"), LVCFMT_LEFT, 90);
m_list.InsertColumn(1,_T("Show?"), LVCFMT_LEFT, 50);
m_list.InsertColumn(2,_T("Value"), LVCFMT_LEFT, 400);
When the user is using the program, the user can click on a row (cell? I'm not sure of the nomenclature) and enter some text. The problem is it will only allow the user to enter as much text as the column is wide. So in this case the user clicks a cell in the "Value" column (which is 400 pixels wide) and it will only allow the user to enter 74 characters.
Is there a way to make it so that the user can enter as many characters as they like, but have it truncate the displayed text to the column width (similar to the way Windows truncates long filenames)? The values also get stored in a data structure somewhere else inside the program.