#include "stdafx.h" #ifndef __USERFILE #define __USERFILE LUserFile::LUserFile () { } LUserFile::~LUserFile () { } L_INT LUserFile::FeedLoadCallBack( pFILEINFO pFileInfo, LBitmapBase * pLBitmap, LBuffer * pLBuffer, L_UINT uFlags, L_INT nRow, L_INT nLines ) { L_INT nRet; RECT rc; if ((uFlags & FILEREAD_FIRSTPASS) && (uFlags & FILEREAD_FIRSTROW)) { m_pView->HandlePalette(WM_QUERYNEWPALETTE, m_pView->m_hWnd); } SetRect (&rc, 0, 0, pLBitmap->GetWidth(), pLBitmap->GetHeight()); pLBitmap->SetDstRect(&rc); pLBitmap->Paint()->SetDC( m_hDC ); nRet = pLBitmap->Paint()->PaintDCBuffer (*pLBuffer, nRow, nLines); return nRet; } #endif //#define __USERFILE