1.动态创建
<Container name="layLoading"/>
if (m_pLoadingGif == NULL)
{
m_pLoadingGif = new CGifCtrlUI();
if (m_pLoadingGif != NULL)
{
m_pLoadingGif->SetGif(L"loading.gif");
m_pLayLoading->Add(m_pLoadingGif);
}
}
2.配置在xml中
<Gif name="layLoading" gif="loading.gif"/>