If you want to insert a large number of rows into the control use BeginnTrans() and CommitTrans() before and after the insertion.
Use SetIniFileName(CString& sFileName) and LoadSettings() to set the full path to the file where the control will store and load its settings from. Call these methods after the controls creation. I.e. If you use a CDialog derived class you can call it from OnInitDialog. For the CFormView derived classes, make this call from OnInitialUpdate.
Tips and Tricks
In rare cases you may need to call ApplySettings() to force the control to store its current settings. Now that Iíve described everything you need to know to make my list control work, hereís some sample code:
Usage This software is released into the public domain. You are free to use it in any way you like. You should keep my author text in the header files. If you modify or extend my control, please consider posting the new code here in the DevArticles forum for everyone to share. This software is provided "as is" with no expressed or implied warranty. I accept no liability for any damage or loss of business that this software may cause.