bool CGifAnimUI::DoPaint(HDC hDC, const RECT& rcPaint, CControlUI* pStopControl) { if( !::IntersectRect( &m_rcPaint, &rcPaint, &m_rcItem ) ) return true; if ( NULL == m_pGifImage ) { InitGifImage(); } DrawFrame( hDC ); return true; }
//************************************ // Method: DoPaint // FullName: CGifAnimUI::DoPaint // Access: public // Returns: void // Qualifier: // Parameter: HDC hDC // Parameter: const RECT & rcPaint // Note: //************************************ void CGifAnimUI::DoPaint( HDC hDC, const RECT& rcPaint ) { try { if( !::IntersectRect( &m_rcPaint, &rcPaint, &m_rcItem ) ) return; if ( NULL == m_pGifImage ) { InitGifImage(); } DrawFrame( hDC ); } catch (...) { throw "CGifAnimUI::DoPaint"; } }
void CGifAnimUI::DoInit() { InitGifImage(); }