本文整理汇总了C++中CContainerUI::FindSubControl方法的典型用法代码示例。如果您正苦于以下问题:C++ CContainerUI::FindSubControl方法的具体用法?C++ CContainerUI::FindSubControl怎么用?C++ CContainerUI::FindSubControl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CContainerUI
的用法示例。
在下文中一共展示了CContainerUI::FindSubControl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cb
CTreeTab::CTreeTab(CPaintManagerUI* ppm)
{
CDialogBuilder builder;
CDialogBuilderCallbackEx cb (ppm);
CContainerUI* pbtnTab = static_cast<CContainerUI*>(builder.Create(_T("tree.xml"), 0, &cb, ppm));
if( pbtnTab ) {
this->Add(pbtnTab);
}
else {
this->RemoveAll();
return;
}
CDuiTreeView* pTree1 = static_cast<CDuiTreeView*>(pbtnTab->FindSubControl(_T("Tree1")));
pTree1->OnNotify += MakeDelegate(this,&CTreeTab::OnFolderChanged);
if (pTree1) {
pTree1->SetDepth(4);
pTree1->SetExpandImage(_T("tree_expand.png"));
CDuiTreeView::Node* pCategoryNode = NULL;
CDuiTreeView::Node* pGameNode = NULL;
CDuiTreeView::Node* pServerNode = NULL;
CDuiTreeView::Node* pRoomNode = NULL;
pCategoryNode = pTree1->AddNode(_T("{x 4}{i gameicons.png 18 3}{x 4}ÍƼöÓÎÏ·"));
for (int i = 0; i < 4; ++i)
{
pGameNode = pTree1->AddNode(_T("{x 4}{i gameicons.png 18 10}{x 4}ËÄÈ˶·µØÖ÷"), pCategoryNode);
for (int i = 0; i < 3; ++i)
{
pServerNode = pTree1->AddNode(_T("{x 4}{i gameicons.png 18 10}{x 4}²âÊÔ·þÎñÆ÷"), pGameNode);
for (int i = 0; i < 3; ++i)
{
pRoomNode = pTree1->AddNode(_T("{x 4}{i gameicons.png 18 10}{x 4}²âÊÔ·¿¼ä"), pServerNode);
}
}
}
pCategoryNode = pTree1->AddNode(_T("{x 4}{i gameicons.png 18 3}{x 4}×î½üÍæ¹ýµÄÓÎÏ·"));
for (int i = 0; i < 2; ++i)
{
pTree1->AddNode(_T("Èýȱһ"), pCategoryNode);
}
pCategoryNode = pTree1->AddNode(_T("{x 4}{i gameicons.png 18 3}{x 4}ÆåÅÆÓÎÏ·"));
for (int i = 0; i < 8; ++i)
{
pTree1->AddNode(_T("Ë«¿Û"), pCategoryNode);
}
pCategoryNode = pTree1->AddNode(_T("{x 4}{i gameicons.png 18 3}{x 4}ÐÝÏÐÓÎÏ·"));
for (int i = 0; i < 8; ++i)
{
pTree1->AddNode(_T("·ÉÐÐÆå"), pCategoryNode);
}
}
}
示例2: InEdit
void CBookClient::InEdit()
{
m_bEdit = !m_bEdit;
int num = this->GetCount();
CContainerUI* pCtrl = NULL;
for (int i = 0; i < num; ++i)
{
pCtrl = static_cast<CContainerUI*>(this->GetItemAt(i));
pCtrl = static_cast<CContainerUI*>(pCtrl->FindSubControl(_T("btnbookdel")));
ASSERT(pCtrl != NULL);
pCtrl->SetVisible(m_bEdit);
}
}