| 778 | } |
| 779 | |
| 780 | LRESULT OnDblClick(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& bHandled) |
| 781 | { |
| 782 | HTREEITEM hItem = GetSelectedItem(); |
| 783 | if( hItem != NULL ) { |
| 784 | IProperty* prop = reinterpret_cast<IProperty*>(TBase::GetItemData(hItem)); |
| 785 | ATLASSERT(prop); |
| 786 | // Ask owner first |
| 787 | NMPROPERTYITEM nmh = { m_hWnd, GetDlgCtrlID(), PIN_DBLCLICK, prop }; |
| 788 | if( ::SendMessage(GetParent(), WM_NOTIFY, nmh.hdr.idFrom, (LPARAM) &nmh) == 0 ) { |
| 789 | // Send DblClick action |
| 790 | LPARAM lParam = ::GetMessagePos(); |
| 791 | prop->Activate(PACT_DBLCLICK, lParam); |
| 792 | } |
| 793 | } |
| 794 | bHandled = FALSE; |
| 795 | return 0; |
| 796 | } |
| 797 | |
| 798 | LRESULT OnSelChanged(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) |
| 799 | { |
nothing calls this directly
no test coverage detected