示例#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;
	}
示例#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";
	}
}
示例#3
0
	void CGifAnimUI::DoInit()
	{
		InitGifImage();
	}