m_value = selection;
if ( valStr != m_combo->GetValue() )
- m_combo->SetValue(valStr);
+ m_combo->SetValueWithEvent(valStr);
SendComboBoxEvent(selection);
}
{
int height = 250;
+ maxHeight -= 2; // Must take borders into account
+
if ( m_strings.GetCount() )
{
if ( prefHeight > 0 )
// NB: Calculations that take variable height into account
// are unnecessary.
int fih = GetLineHeight(0);
- int shown = height/fih;
- height = shown * fih;
+ height -= height % fih;
}
}
else