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

Function GetSelectedColor

Libraries/PropertyGrid/ColorCombo.h:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 COLORREF GetSelectedColor() const
100 {
101 ATLASSERT(::IsWindow(m_hWnd));
102 int iItem = GetCurSel();
103 if( iItem == -1 ) return (COLORREF) -1; // Returns -1 if none if selected
104 return (COLORREF) GetItemData(iItem) & 0xFFFFFF;
105 }
106
107 int FindColor(COLORREF clr) const
108 {

Callers

nothing calls this directly

Calls 2

GetCurSelFunction · 0.85
GetItemDataFunction · 0.70

Tested by

no test coverage detected