I think I have a relatively simple question, yet I have not found a relatively simple solution.
I am loading a combo box control using using .AddString ():
That works fine and I am pleased with my results. However, I want to be able to clear the values listed in the combo box based on the value of check box state. I successfully add values to the combo box if it is checked, but I want to clear the list in the combo box so it shows no values if the box is unchecked.Code://list files in combo box box for data files m_DataFile.AddString(file.c_str()); UpdateData(false);
So far the code below clears most of the values but some still remain, so I know this logic is flawed. Any suggestions? Am I going about this the wrong way?
Any help is greatly appreciated. Thanks-Code://clear the combo box of current values int count = 0; //clear the combo box setting it blank values do { m_DataFile.DeleteString(count); UpdateData (false); count ++; }while (count != numberPackages);



LinkBack URL
About LinkBacks



