[ Programing ]/MFC

특정 폴더 안에 파일 쉽게 찾기

Mister_Q 2013. 5. 21. 23:55

CListBox ctrlSomethingList.ResetContent();
ctrlSomethingList.SendMessage( LB_DIR, 0, (LPARAM)("경로\*.확장자") );

 

 for(int i=0;;i++)
 {
      TCHAR strText[128] = {NULL,};

 

      if (m_ctrlSomethingList.GetText(i,strText) == LB_ERR)
             break;  

 }