MCPcopy Create free account
hub / github.com/cinience/RedisStudio / OnFolderChanged

Method OnFolderChanged

DuiLib/Control/UITreeView.cpp:1049–1061  ·  view source on GitHub ↗

��������: OnFolderChanged ��������: bool ������Ϣ: void * param ����˵��:

Source from the content-addressed store, hash-verified

1047 // ����˵��:
1048 //************************************
1049 bool CTreeViewUI::OnFolderChanged( void* param )
1050 {
1051 TNotifyUI* pMsg = (TNotifyUI*)param;
1052 if(pMsg->sType == _T("selectchanged"))
1053 {
1054 CCheckBoxUI* pFolder = (CCheckBoxUI*)pMsg->pSender;
1055 CTreeNodeUI* pItem = (CTreeNodeUI*)pFolder->GetParent()->GetParent();
1056 pItem->SetVisibleTag(!pFolder->GetCheck());
1057 SetItemExpand(!pFolder->GetCheck(),pItem);
1058 return true;
1059 }
1060 return true;
1061 }
1062
1063 //************************************
1064 // ��������: OnDBClickItem

Callers

nothing calls this directly

Calls 3

SetVisibleTagMethod · 0.80
GetCheckMethod · 0.80
GetParentMethod · 0.45

Tested by

no test coverage detected