Ejemplo n.º 1
0
	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;
	}
Ejemplo n.º 2
0
//************************************
// 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";
	}
}
Ejemplo n.º 3
0
	void CGifAnimUI::DoInit()
	{
		InitGifImage();
	}