| 775 | } |
| 776 | |
| 777 | LRESULT OnDblClick(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& /*bHandled*/) |
| 778 | { |
| 779 | LRESULT lRes = DefWindowProc(uMsg, wParam, lParam); |
| 780 | int idx = GetCurSel(); |
| 781 | if( idx != -1 ) { |
| 782 | IProperty* prop = reinterpret_cast<IProperty*>(TBase::GetItemData(idx)); |
| 783 | ATLASSERT(prop); |
| 784 | // Ask owner first |
| 785 | NMPROPERTYITEM nmh = { m_hWnd, GetDlgCtrlID(), PIN_DBLCLICK, prop }; |
| 786 | if( ::SendMessage(GetParent(), WM_NOTIFY, nmh.hdr.idFrom, (LPARAM) &nmh) == 0 ) { |
| 787 | // Send DblClick action |
| 788 | if( prop->IsEnabled() ) prop->Activate(PACT_DBLCLICK, lParam); |
| 789 | } |
| 790 | } |
| 791 | return lRes; |
| 792 | } |
| 793 | |
| 794 | LRESULT OnMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL &bHandled) |
| 795 | { |
nothing calls this directly
no test coverage detected