��������: OnDBClickItem ��������: bool ������Ϣ: void * param ����˵��:
| 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 |
nothing calls this directly
no test coverage detected