| 368 | } |
| 369 | |
| 370 | BOOL SetItemValue(HPROPERTY prop, VARIANT* pValue) |
| 371 | { |
| 372 | ATLASSERT(::IsWindow(m_hWnd)); |
| 373 | ATLASSERT(prop); |
| 374 | ATLASSERT(pValue); |
| 375 | if( prop == NULL || pValue == NULL ) return FALSE; |
| 376 | // Assign value and repaint |
| 377 | BOOL bRes = prop->SetValue(*pValue); |
| 378 | // Thanks to Daniel Bowen for fixing the recreation of inplace editor here. |
| 379 | int idx = FindProperty(prop); |
| 380 | if( idx >= 0 ) { |
| 381 | InvalidateItem(idx); |
| 382 | if( idx == m_iInplaceIndex ) _SpawnInplaceWindow(prop, m_iInplaceIndex); |
| 383 | } |
| 384 | return bRes; |
| 385 | } |
| 386 | |
| 387 | LPARAM GetItemData(HPROPERTY prop) const |
| 388 | { |
nothing calls this directly
no test coverage detected