diff options
Diffstat (limited to 'xfa/fwl/basewidget/fwl_comboboximp.cpp')
-rw-r--r-- | xfa/fwl/basewidget/fwl_comboboximp.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fwl/basewidget/fwl_comboboximp.cpp b/xfa/fwl/basewidget/fwl_comboboximp.cpp index e86a52eaa0..5b3e7c7c35 100644 --- a/xfa/fwl/basewidget/fwl_comboboximp.cpp +++ b/xfa/fwl/basewidget/fwl_comboboximp.cpp @@ -722,16 +722,16 @@ FWL_ERR CFWL_ComboBoxImp::SetCurSel(int32_t iSel) { m_iCurSel = bClearSel ? -1 : iSel; return FWL_ERR_Succeeded; } -FWL_ERR CFWL_ComboBoxImp::SetStates(uint32_t dwStates, FX_BOOL bSet) { + +void CFWL_ComboBoxImp::SetStates(uint32_t dwStates, FX_BOOL bSet) { FX_BOOL bIsDropDown = IsDropDownStyle(); - if (bIsDropDown && m_pEdit) { + if (bIsDropDown && m_pEdit) m_pEdit->SetStates(dwStates, bSet); - } - if (m_pListBox) { + if (m_pListBox) m_pListBox->SetStates(dwStates, bSet); - } - return CFWL_WidgetImp::SetStates(dwStates, bSet); + CFWL_WidgetImp::SetStates(dwStates, bSet); } + FWL_ERR CFWL_ComboBoxImp::SetEditText(const CFX_WideString& wsText) { if (!m_pEdit) return FWL_ERR_Indefinite; |