From 4abab2a54b526d5bd74805d3b6541b21c25ae7a9 Mon Sep 17 00:00:00 2001 From: Tino Rachui Date: Wed, 14 Nov 2001 15:42:20 +0000 Subject: #94499#no even caching the index of the last selected item of a listbox --- fpicker/source/win32/filepicker/filepickerstate.cxx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/win32/filepicker/filepickerstate.cxx b/fpicker/source/win32/filepicker/filepickerstate.cxx index b2142827e572..965caa4342c4 100644 --- a/fpicker/source/win32/filepicker/filepickerstate.cxx +++ b/fpicker/source/win32/filepicker/filepickerstate.cxx @@ -2,9 +2,9 @@ * * $RCSfile: filepickerstate.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: tra $ $Date: 2001-11-05 07:52:26 $ + * last change: $Author: tra $ $Date: 2001-11-14 16:42:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -645,11 +645,22 @@ void SAL_CALL CExecuteFilePickerState::cacheControlState( HWND hwndControl, CFil else if ( LISTBOX == aCtrlClass ) { // for listboxes we save only the - // last selected item + // last selected item and the last + // selected item index + aControlAction = GET_SELECTED_ITEM; lpfnGetValue = GetCtrlGetValueFunction( aCtrlClass, aControlAction ); + aNonExecFilePickerState->setValue( + GetDlgCtrlID( hwndControl ), + aControlAction, + lpfnGetValue( hwndControl ) ); + + aControlAction = ::com::sun::star::ui::dialogs::ControlActions::GET_SELECTED_ITEM_INDEX; + + lpfnGetValue = GetCtrlGetValueFunction( aCtrlClass, aControlAction ); + aNonExecFilePickerState->setValue( GetDlgCtrlID( hwndControl ), aControlAction, -- cgit