|
From: andrew7 <bd...@us...> - 2007-06-16 01:35:47
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin/widgets In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv22328 Modified Files: WidgetSpinner.h Log Message: Allow UDM_GETPOS message to have ERROR_INVALID_INDEX without causing an exception. It seems to work anyhow. Index: WidgetSpinner.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetSpinner.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- WidgetSpinner.h 23 Jun 2006 22:38:13 -0000 1.18 +++ WidgetSpinner.h 16 Jun 2007 01:35:44 -0000 1.19 @@ -218,7 +218,9 @@ if ( HIWORD( retVal ) != 0 ) { xCeption err( _T( " Something went wrong while trying to retrieve value if WidgetSpinner" ) ); - throw err; + if ( ERROR_INVALID_INDEX != err.getErrorCode() ) { // Allow this error, not sure why. + throw err; + } } return LOWORD( retVal ); #else |