MCPcopy Create free account
hub / github.com/SOUI2/soui / DeleteAll

Method DeleteAll

SOUI/src/control/SListbox.cpp:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void SListBox::DeleteAll()
133{
134 for(int i=0; i < GetCount(); i++)
135 {
136 if (m_arrItems[i])
137 delete m_arrItems[i];
138 }
139 m_arrItems.RemoveAll();
140
141 m_iSelItem=-1;
142 m_iHoverItem=-1;
143
144 SetViewSize(CSize(0,0));
145 Invalidate();
146}
147
148BOOL SListBox::DeleteString(int nIndex)
149{

Callers 1

ResetContentFunction · 0.45

Calls 4

GetCountFunction · 0.85
CSizeClass · 0.85
InvalidateFunction · 0.85
RemoveAllMethod · 0.45

Tested by

no test coverage detected