Programming - cpueblo.com

TOpenDialog Multi Selection 예제


글쓴이 : 유광희 날짜 : 2002-06-12 (수) 11:33 조회 : 13216
TOpenDialog *OpenDialog = new TOpenDialog(this);

OpenDialog->DefaultExt  = "c";
OpenDialog->FileName    = "*.c;*.cpp;*.h";
OpenDialog->Filter      = "Source Code Files(*.c;*.cpp;*.h)|*.c;*.cpp;*.h|All Files (*.*)|*.*";
OpenDialog->Options << ofAllowMultiSelect;

<FONT COLOR=#008000>// 파일 열기 다이얼로그 박스 표시
if( !OpenDialog->Execute() ) return;

for (int i = 0; i < OpenDialog->Files->Count; i ++)
{
	TListItem *Item = lvFileList->Items->Add();
	Item->Caption = OpenDialog->Files->Strings[i];
}

delete OpenDialog;