MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / OnDblClick

Function OnDblClick

Libraries/PropertyGrid/PropertyTree.h:780–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

GetMessagePosFunction · 0.85
GetItemDataFunction · 0.70
ActivateMethod · 0.45

Tested by

no test coverage detected