maoyg wrote: > I encountered a question about SvxZoomSliderItem, > I have defined "const USHORT nCurrentZoom = ScPrintFunc( pDocShell, > pDocShell->GetPrinter(), nTab ).GetZoom(), > MINZOOM_SLIDER = 10,MAXZOOM_SLIDER = 400, > SvxZoomSliderItem > aZoomSliderItem(nCurrentZoom,MINZOOM_SLIDER,MAXZOOM_SLIDER,SID_PREVIEW_ZOOMSLIDER) > rSet.Put( aZoomSliderItem ) " in the GetState(...) method of prevwsh.cxx > file. > When the program debugs into the ScZoomSliderControl::StateChanged(USHORT > nSID,SfxItemState eState,const SfxPoolItem* pState), > I checked pState, the mnMinZoom is 20, the mnMaxZoom is 600, these variable's > value is not the value that I set in prevwsh.cxx, > I think the reason is because of the default constructor > SvxZoomSliderItem(...), whether my idea is right ?
It shouldn't be. If you create the item with the right values in the GetState method, the item's default constructor shouldn't matter. Niklas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]