Hello LiuJianli,
刘建立 wrote:
> Hello Andre,
>
> With your help,I broken at void ViewShell::SetZoomRect(const Rectangle&
> rZoomRect) (sd\source\ui\view\viewshe2.cxx).
> I think that the variable of nZoom is the key to this problem.
> Further more, I tracked to the function:long Window::SetZoomRect (const
> Rectangle& rZoomRect)(sd\source\ui\view\sdwindow.cxx)
> The nZoom relies on rZoomRect to get it.But the rZoomRect is different every
> time.It is very diffcult to get the place where rZoomRec was set.
You may want to check whether the calculation of nZoom for a given
rZoomRect is broken, or if the rZoomRect given to
ViewShell::SetZoomRect() is wrong. The later I find more likely.
As for rZoomRect being different every time: this is especially during
start up when creation of tool bars and child windows leads to multiple
resizes of the center pane. You somehow have to sort out the calls to
SetZoomRect() that originate in resizes().
>
> In addition, I'm still unable to understand this codes:
>
> if( (nX != 0) && (nY != 0) )
>
> {
>
> nX = (ULONG) ((double) aWinSize.Height()
>
> * (double) ZOOM_MULTIPLICATOR / (double) rZoomRect.GetHeight());
>
>
> nY = (ULONG) ((double) aWinSize.Width()
>
> * (double) ZOOM_MULTIPLICATOR / (double) rZoomRect.GetWidth());
>
>
> }
>
> long nZoom = nFact * GetZoom() / ZOOM_MULTIPLICATOR;
What is the CVS revision of sdwindow.cxx of the above code snippet?
In the current 1.35 revision the code looks a little different and
contains comments that may help you to understand it.
>
>
> Best Regards
>
> LiuJianli
Best regards,
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]