Esempio n. 1
0
void CTrayFlash::OnInit()
{
	CIcon * pBase;
	if( !m_strIcon1.empty() )
	{
		pBase = g_pRoot->GetIcon(m_strIcon1.c_str());
		if( pBase )
			m_pIcon1 = g_pRoot->CreateIcon(pBase->IconHnd());
	}
	if( !m_strIcon2.empty() )
	{
		pBase = g_pRoot->GetIcon(m_strIcon2.c_str());
		if( pBase )
			m_pIcon2 = g_pRoot->CreateIcon(pBase->IconHnd());
	}
	Item()->m_nFlags &= ~STYLE_DESTROY_ICON;
	TBase::OnInit();
}