MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / AddString

Method AddString

Editor/Controls/InPlaceComboBox.cpp:699–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699int CInPlaceComboBox::AddString(LPCTSTR pStrText, DWORD nData)
700{
701 int nIndex = m_wndDropDown.GetListBox().AddString(pStrText);
702
703 CDC *dc = GetDC();
704 CSize size = dc->GetTextExtent( pStrText );
705 ReleaseDC(dc);
706
707 if (size.cx > m_minListWidth)
708 m_minListWidth = size.cx;
709
710 return m_wndDropDown.GetListBox().SetItemData(nIndex, nData);
711}
712
713//////////////////////////////////////////////////////////////////////////
714void CInPlaceComboBox::ResetContent()

Callers 3

CreateMethod · 0.45
AddSelectionMethod · 0.45
CreateInPlaceControlMethod · 0.45

Calls 1

SetItemDataMethod · 0.80

Tested by

no test coverage detected