|
// *********************************************************
// ファイルリスト
// *********************************************************
void MyClass::MyEnumFile()
{
this->MyEnumListEnd();
this->MyEnumListInit();
}
// *********************************************************
// リストビューの初期化
// *********************************************************
void MyClass::MyEnumListInit()
{
LView->Initialize();
LView->AddColumn( "名前" );
LView->AddColumn( LVCFMT_RIGHT, 100, "サイズ" );
LView->AddColumn( "更新日時" );
this->MyImagelist = new LboxImagelist();
this->MyImagelist->CreateSystemFile( );
LView->SetImageList( this->MyImagelist );
}
// *********************************************************
// リストビューの終了処理
// *********************************************************
void MyClass::MyEnumListEnd()
{
if ( LView->hImgListBase != NULL ) {
ListView_SetImageList(
LView->hWnd,
NULL,
LVSIL_SMALL
);
}
if ( this->MyImagelist != NULL ) {
delete this->MyImagelist;
this->MyImagelist = NULL;
}
}
| |