该demo是模拟QQ的界面和相应的操作。

1、该主界面的列表使用了自定义listui的操作。在 createcontrol中进行自定义创建。

CControlUI* MainFrame::CreateControl(LPCTSTR pstrClass)
{
    if (_tcsicmp(pstrClass, _T("FriendList")) == 0)
    {
        return new CFriendsUI(m_PaintManager);
    }
    else if (_tcsicmp(pstrClass, _T("GroupList")) == 0)
    {
        return new CGroupsUI(m_PaintManager);
    }
    else if (_tcsicmp(pstrClass, _T("MicroBlog")) == 0)
    {
        return new CMicroBlogUI(m_PaintManager);
    }

    return NULL;
}
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-07-13
  • 2022-12-23
  • 2021-12-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
相关资源
相似解决方案