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

Method GetListBoxHeight

SOUI/src/control/SComboBox.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 int SComboBox::GetListBoxHeight()
66 {
67 int nDropHeight=m_nDropHeight.toPixelSize(GetScale());
68 if(GetCount())
69 {
70 int nItemHeight=m_pListBox->GetItemHeight();
71 CRect rcMargin = m_pListBox->GetStyle().GetMargin();
72 nDropHeight = (std::min)(nDropHeight,(int)(nItemHeight*GetCount()+rcMargin.top + rcMargin.bottom));
73 }
74 return nDropHeight;
75 }
76
77 void SComboBox::OnCreateDropDown( SDropDownWnd *pDropDown)
78 {

Callers

nothing calls this directly

Calls 6

GetCountFunction · 0.85
toPixelSizeMethod · 0.80
GetScaleFunction · 0.50
GetItemHeightMethod · 0.45
GetMarginMethod · 0.45
GetStyleMethod · 0.45

Tested by

no test coverage detected