| 305 | } |
| 306 | |
| 307 | BOOL SetSubItem(int nItem, int nSubItem, HPROPERTY hProp) |
| 308 | { |
| 309 | ATLASSERT(::IsWindow(m_hWnd)); |
| 310 | ATLASSERT(hProp); |
| 311 | ATLASSERT(nSubItem>=0); |
| 312 | ATLASSERT(nSubItem<m_nColumns); |
| 313 | IProperty** props = reinterpret_cast<IProperty**>(TBase::GetItemData(nItem)); |
| 314 | ATLASSERT(props); |
| 315 | ATLASSERT(props[nSubItem]==NULL); // Do not replace HPROPERTY nodes. |
| 316 | if( props == NULL ) return FALSE; |
| 317 | if( nSubItem < 0 || nSubItem >= m_nColumns ) return FALSE; |
| 318 | props[nSubItem] = hProp; |
| 319 | hProp->SetOwner(m_hWnd, NULL); |
| 320 | // Trick ListView into thinking there is a subitem... |
| 321 | return TBase::SetItemText(nItem, nSubItem, _T("")); |
| 322 | } |
| 323 | |
| 324 | BOOL GetItemText(int iItem, int iSubItem, LPTSTR pstrText, UINT cchMax) const |
| 325 | { |
nothing calls this directly
no test coverage detected