Beispiel #1
0
	//--------------------------------------------------------------------------------
	CImageList::CImageList( CImageList& Im1, int i1, CImageList& Im2, int i2, int dx, int dy ) : m_ComCtl32Library( CComCtl32::Instance() )
	,	m_Handle( this, 0 )
	{
		_WINQ_FCONTEXT( "CImageList::CImageList" );
		__QOR_PROTECT
		{
			m_Handle = m_ComCtl32Library.ImageList_Merge( reinterpret_cast< ::HIMAGELIST >( Im1.Handle()->Use() ), i1, reinterpret_cast< ::HIMAGELIST >( Im2.Handle()->Use() ), i2, dx, dy );
			Init();
		}__QOR_ENDPROTECT
	}
Beispiel #2
0
	//--------------------------------------------------------------------------------
	bool CImageList::Copy( CImageList& IlSrc, int iDst, int iSrc, unsigned int uFlags )
	{
		_WINQ_FCONTEXT( "CImageList::Copy" );
		bool bResult = false;
		__QOR_PROTECT
		{
			bResult = m_ComCtl32Library.ImageList_Copy( reinterpret_cast< ::HIMAGELIST >( m_Handle.Use() ), reinterpret_cast< ::HIMAGELIST >( IlSrc.Handle()->Use() ), iDst, iSrc, uFlags ) ? true : false;
		}__QOR_ENDPROTECT
		return bResult;
	}