| 419 | } |
| 420 | |
| 421 | IProperty* GetProperty(int iRow, int iCol) const |
| 422 | { |
| 423 | ATLASSERT(iCol >= 0 && iCol < m_nColumns); |
| 424 | ATLASSERT(iRow >= 0 && iRow < TBase::GetItemCount()); |
| 425 | if( iCol < 0 || iCol >= m_nColumns ) return NULL; |
| 426 | if( iRow < 0 || iRow >= TBase::GetItemCount() ) return NULL; |
| 427 | IProperty** props = reinterpret_cast<IProperty**>(TBase::GetItemData(iRow)); |
| 428 | ATLASSERT(props); |
| 429 | if( props == NULL ) return NULL; |
| 430 | IProperty* prop = props[iCol]; |
| 431 | ATLASSERT(prop); // If you hit this assert, most likely you forgot to add properties to all subitems. |
| 432 | // Use read-only properties to fill out with dummies. |
| 433 | return prop; |
| 434 | } |
| 435 | |
| 436 | LPARAM GetItemData(HPROPERTY hProp) const |
| 437 | { |
no test coverage detected