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

Method GetText

Reference code/osImageTool/ComboBoxControl.cpp:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool ComboBoxControl::GetText(std::string& text) const
54{
55 int sel= m_cb->GetCurSel();
56 if (sel!=CB_ERR)
57 return false;
58
59 CString dst;
60 m_cb->GetWindowText(dst);
61
62 if (dst.IsEmpty())
63 return false;
64
65 text= std::string(dst.GetBuffer());
66 return true;
67}
68

Callers 2

GetWriterMethod · 0.45
GetReaderMethod · 0.45

Calls 3

GetBufferMethod · 0.80
GetCurSelMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected