| 105 | } |
| 106 | |
| 107 | int FindColor(COLORREF clr) const |
| 108 | { |
| 109 | ATLASSERT(::IsWindow(m_hWnd)); |
| 110 | int nCount = GetCount(); |
| 111 | for( int i = 0; i < nCount; i++ ) { |
| 112 | if( (GetItemData(i) & 0xFFFFFF) == (DWORD) clr ) return i; |
| 113 | } |
| 114 | return -1; |
| 115 | } |
| 116 | |
| 117 | // Implementation |
| 118 |
no test coverage detected