| 345 | } |
| 346 | |
| 347 | BOOL SetItemValue(HPROPERTY hProp, VARIANT* pValue) |
| 348 | { |
| 349 | ATLASSERT(::IsWindow(m_hWnd)); |
| 350 | ATLASSERT(hProp); |
| 351 | ATLASSERT(pValue); |
| 352 | if( hProp == NULL || pValue == NULL ) return FALSE; |
| 353 | // Assign value and repaint |
| 354 | BOOL bRes = hProp->SetValue(*pValue); |
| 355 | // Find property position and repaint it... |
| 356 | int nItem = -1, nSubItem = -1; |
| 357 | if( !FindProperty(hProp, nItem, nSubItem) ) return FALSE; |
| 358 | _InvalidateItem(nItem, nSubItem); |
| 359 | // If changing selected item then recreate in-place editor |
| 360 | if( (m_hwndInplace != NULL) && (nItem == m_iInplaceRow) && (nSubItem == m_iInplaceCol) ) _SpawnInplaceWindow(hProp, m_iInplaceRow, m_iInplaceCol); |
| 361 | return bRes; |
| 362 | } |
| 363 | |
| 364 | int GetSelectedColumn() const |
| 365 | { |
nothing calls this directly
no test coverage detected