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

Function OnSetFocus

Libraries/PropertyGrid/PropertyTree.h:573–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571 }
572
573 LRESULT OnSetFocus(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
574 {
575 LRESULT lRes = DefWindowProc();
576 // Spawn editor right away for selected item
577 IProperty* prop = NULL;
578 HTREEITEM hItem = GetSelectedItem();
579 if( hItem != NULL ) {
580 prop = reinterpret_cast<IProperty*>(TBase::GetItemData(hItem));
581 ATLASSERT(prop);
582 if( prop->IsEnabled() ) {
583 prop->Activate(PACT_ACTIVATE, 0);
584 _SpawnInplaceWindow(prop, hItem);
585 }
586 }
587 return lRes;
588 }
589
590 LRESULT OnScroll(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
591 {

Callers

nothing calls this directly

Calls 4

IsEnabledMethod · 0.80
GetItemDataFunction · 0.70
_SpawnInplaceWindowFunction · 0.70
ActivateMethod · 0.45

Tested by

no test coverage detected