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

Method GetSelection

Reference code/osImageTool/ComboBoxControl.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool ComboBoxControl::GetSelection(int& index) const
43{
44 int sel= m_cb->GetCurSel();
45
46 if (sel==CB_ERR)
47 return false;
48
49 index= (int)m_cb->GetItemData(sel);
50 return true;
51}
52
53bool ComboBoxControl::GetText(std::string& text) const
54{

Callers 2

GetWriterMethod · 0.45
GetReaderMethod · 0.45

Calls 2

GetCurSelMethod · 0.45
GetItemDataMethod · 0.45

Tested by

no test coverage detected