MCPcopy Create free account
hub / github.com/ariccio/altWinDirStat / SetSelection

Method SetSelection

Reference code/osImageTool/ComboBoxControl.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void ComboBoxControl::SetSelection(int index)
26{
27 for (int i=0 ; i<m_cb->GetCount() ; i++)
28 {
29 if (m_cb->GetItemData(i)==index)
30 {
31 m_cb->SetCurSel(i);
32 return;
33 }
34 }
35}
36
37void ComboBoxControl::SetText(const std::string& text)
38{

Callers 1

InitInstanceMethod · 0.45

Calls 3

GetCountMethod · 0.45
GetItemDataMethod · 0.45
SetCurSelMethod · 0.45

Tested by

no test coverage detected