1、在winmain 函数中注册类
theApp->RegisterWindowClass<SGifPlayer>();//theApp中增加方法:RegisterWindowClass,替换RegisterWndFactory(TplSWindowFactory<SGifPlayer>())
theApp->RegisterSkinClass<SSkinGif>();//注册SkinGif
2、在xml中添加三方控件
<gifplayer name="gif_test" pos="0,0" size="584, 136" skin="gif_horse" show="1" />
2、操作控件
SGifPlayer *pGifPlayer = FindChildByName2<SGifPlayer>(L"gif_test");
if (pGifPlayer)
{
}