| 295 | } |
| 296 | |
| 297 | BOOL CDDETopic::AddItem(CDDEItem* pNewItem) |
| 298 | { |
| 299 | ASSERT(pNewItem); |
| 300 | |
| 301 | // |
| 302 | // See if we already have this item |
| 303 | // |
| 304 | |
| 305 | POSITION pos = m_ItemList.Find(pNewItem); |
| 306 | if (pos) return TRUE; // already have it |
| 307 | |
| 308 | // |
| 309 | // Add the new item |
| 310 | // |
| 311 | |
| 312 | m_ItemList.AddTail(pNewItem); |
| 313 | pNewItem->m_pTopic = this; |
| 314 | |
| 315 | return TRUE; |
| 316 | } |
| 317 | |
| 318 | BOOL CDDETopic::Request(UINT wFmt, const TCHAR* pszItem, |
| 319 | CDDEAllocator &allocr) |
no test coverage detected