ListBoxFillDir

 

void ListBoxFillDir(char *classname, char *path);

 

리스트 박스의 내용을 주어진 PATH에 있는 서브 디렉토리로 채운다.

 

함수인자

classname – 리스트 박스 클래스 이름 (예 : "ListBox1")

path – 리스트 박스의 내용으로 채울 디렉토리 명 (예: "C:\\TESTWORK\\*.*");

return 값

return 값은 없다.

예제1

@ListBoxResetContent("ListBox1");                                        // 리스트 박스의 내용을 모두 지운다.

@ListBoxFillDir("ListBox1","C:\\WINNT\\*.*");

 

문장설명 : C:\WINNT에 있는 서브 디렉토리를 ListBox1에 채운다. 아래와 그림과 같이 리스트박스가 디렉토리로 채워지는 결과를 얻을 수 있다.

 

<그림> 리스트 박스가 디렉토리로 채워진 결과

 

관련항목

@ListBoxAddString()

@ListBoxDeleteString()

@ListBoxFillDir()

@ListBoxFillFile()

@ListBoxGetCurSel()

@ListBoxGetSel()

@ListBoxGetSelCount()

@ListBoxGetText()

@ListBoxResetContent()

@ListBoxSetCurSel()