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

Function OnExpanding

Libraries/PropertyGrid/PropertyTree.h:822–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820 }
821
822 LRESULT OnExpanding(int /*idCtrl*/, LPNMHDR pnmh, BOOL& bHandled)
823 {
824 // Test for style that prevents collapsing
825 if( (m_di.dwExtStyle & PTS_EX_NOCOLLAPSE) != 0 && m_bSeenClicks ) return TRUE;
826
827 // Convert to PropertyTree notifications...
828 LPNMTREEVIEW nmtv = (LPNMTREEVIEW) pnmh;
829 HTREEITEM hItem = nmtv->itemNew.hItem;
830 IProperty* prop = reinterpret_cast<IProperty*>(TBase::GetItemData(hItem));
831 ATLASSERT(prop);
832 UINT nMsg = nmtv->action == TVE_COLLAPSE ? PIN_COLLAPSING : PIN_EXPANDING;
833 NMPROPERTYITEM nmh = { m_hWnd, GetDlgCtrlID(), nMsg, prop };
834 if( ::SendMessage(GetParent(), WM_NOTIFY, nmh.hdr.idFrom, (LPARAM) &nmh) != 0 ) return TRUE;
835
836 // Let others have a go...
837 bHandled = FALSE;
838 return 0;
839 }
840
841 // Custom painting
842

Callers

nothing calls this directly

Calls 1

GetItemDataFunction · 0.70

Tested by

no test coverage detected