WritePrivateProfileString can used to store
below function is used to retrive the corresponding item selected in the list control
void CSDINew2View::OnListSelectionChanged(NMHDR * pNotifyStruct, LRESULT * result)
{
WCHAR m_VStrBuf[256];
m_VListId = m_CListCtrl.GetHotItem();
GetPrivateProfileString(_T("List1"),m_CListCtrl.GetItemText(m_VListId,NULL),NULL,m_VStrBuf,256,m_VFileName);
m_CEdit.SetWindowText(m_VStrBuf);
}