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

Function OnDblClick

Libraries/PropertyGrid/PropertyList.h:777–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

GetCurSelFunction · 0.85
IsEnabledMethod · 0.80
GetItemDataFunction · 0.70
ActivateMethod · 0.45

Tested by

no test coverage detected