| 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 | { |
nothing calls this directly
no test coverage detected