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

Method OnDBClickItem

DuiLib/Control/UITreeView.cpp:1069–1082  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1067 // ����˵��:
1068 //************************************
1069 bool CTreeViewUI::OnDBClickItem( void* param )
1070 {
1071 TNotifyUI* pMsg = (TNotifyUI*)param;
1072 if(pMsg->sType == _T("itemdbclick"))
1073 {
1074 CTreeNodeUI* pItem = static_cast<CTreeNodeUI*>(pMsg->pSender);
1075 CCheckBoxUI* pFolder = pItem->GetFolderButton();
1076 pFolder->Selected(!pFolder->IsSelected());
1077 pItem->SetVisibleTag(!pFolder->GetCheck());
1078 SetItemExpand(!pFolder->GetCheck(),pItem);
1079 return true;
1080 }
1081 return false;
1082 }
1083
1084 //************************************
1085 // ��������: SetItemCheckBox

Callers

nothing calls this directly

Calls 4

SelectedMethod · 0.80
SetVisibleTagMethod · 0.80
GetCheckMethod · 0.80
IsSelectedMethod · 0.45

Tested by

no test coverage detected