MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / FindColor

Function FindColor

Libraries/PropertyGrid/ColorCombo.h:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

RemoveColorFunction · 0.85
ChangeColorFunction · 0.85
SelectColorFunction · 0.85

Calls 1

GetItemDataFunction · 0.70

Tested by

no test coverage detected