朱皮特的博客 自由的飞翔

duilib在界面中创建自定义控件

2015-10-20
朱皮特
阅读量:

CControlUI* CDuiFrameWnd::CreateControl( LPCTSTR pstrClassName )
{
    if (_tcsicmp(pstrClassName, _T("WndPlayPanel")) == 0)
    {
        CDialogBuilder builder;
        CControlUI* pUI = builder.Create(_T("WndPlayPanel.xml"));
        return pUI;
    }

    return NULL;
}

Comments

Content