diff options
Diffstat (limited to 'vcl/source/control/ilstbox.cxx')
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index d4a427643387..fbdd66245867 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -2647,7 +2647,7 @@ void ImplWin::ImplDraw( bool bLayout ) if( ! bLayout ) { - ControlState nState = CTRL_STATE_ENABLED; + ControlState nState = ControlState::ENABLED; if ( IsNativeControlSupported(CTRL_LISTBOX, PART_ENTIRE_CONTROL) && IsNativeControlSupported(CTRL_LISTBOX, HAS_BACKGROUND_TEXTURE) ) { @@ -2658,9 +2658,9 @@ void ImplWin::ImplDraw( bool bLayout ) ImplControlValue aControlValue; if ( !pWin->IsEnabled() ) - nState &= ~CTRL_STATE_ENABLED; + nState &= ~ControlState::ENABLED; if ( pWin->HasFocus() ) - nState |= CTRL_STATE_FOCUSED; + nState |= ControlState::FOCUSED; // The listbox is painted over the entire control including the // border, but ImplWin does not contain the border => correction @@ -2679,7 +2679,7 @@ void ImplWin::ImplDraw( bool bLayout ) } if( bMouseOver ) - nState |= CTRL_STATE_ROLLOVER; + nState |= ControlState::ROLLOVER; // if parent has no border, then nobody has drawn the background // since no border window exists. so draw it here. @@ -2708,14 +2708,14 @@ void ImplWin::ImplDraw( bool bLayout ) Color aColor; if( ImplGetSVData()->maNWFData.mbDDListBoxNoTextArea ) { - if( bNativeOK && (nState & CTRL_STATE_ROLLOVER) ) + if( bNativeOK && (nState & ControlState::ROLLOVER) ) aColor = rStyleSettings.GetButtonRolloverTextColor(); else aColor = rStyleSettings.GetButtonTextColor(); } else { - if( bNativeOK && (nState & CTRL_STATE_ROLLOVER) ) + if( bNativeOK && (nState & ControlState::ROLLOVER) ) aColor = rStyleSettings.GetFieldRolloverTextColor(); else aColor = rStyleSettings.GetFieldTextColor(); |