// MyFileBrowse2.cpp: implementation of the MyFileBrowse2 class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MyFileBrowse2.h" #include "MainFrm.h" L_INT nBitmapNum; ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// MyFileBrowse2::MyFileBrowse2() { } MyFileBrowse2::~MyFileBrowse2() { } L_INT MyFileBrowse2::BrowseDirCallBack( LBitmapBase L_FAR* pLBitmap, L_TCHAR L_FAR * pszFilename, pFILEINFO pInfo, L_INT nStatus, L_INT nPercent ) { LBitmapBase TmpBitmap; CMainFrame * pFrame = (CMainFrame*)AfxGetApp()->GetMainWnd(); if ( nStatus == SUCCESS ) { L_INT nRet = TmpBitmap.Load( pszFilename, 24, ORDER_BGRORGRAY, 0, 0); pFrame->m_DirectoryList.InsertItem( &TmpBitmap, pFrame->m_nBitmapListCount); pFrame->m_nBitmapListCount++ ; } return SUCCESS; }