#include "stdafx.h" #ifndef __USERFILE___ #define __USERFILE___ LUserFile::LUserFile () { } LUserFile::~LUserFile () { } L_INT LUserFile::LoadFileCallBack ( pFILEINFO pFileInfo, LBitmapBase * pLBitmap, LBuffer *pLBuffer, L_UINT uFlags, L_INT nRow, L_INT nLines) { if ( ( uFlags & FILEREAD_FIRSTPASS ) &&( uFlags & FILEREAD_FIRSTROW ) ) m_pView->HandlePalette(WM_QUERYNEWPALETTE, m_pView->m_hWnd); CDC* pDC = m_pView->GetDC(); pLBitmap->Paint ()->SetDC ( pDC->m_hDC); L_INT nRet = pLBitmap->Paint()->PaintDCBuffer ( *pLBuffer,nRow, nLines); m_pView->ReleaseDC ( pDC ); return nRet; } #endif // __USERFILE___