by MarkWarren » Mon Mar 23, 2009 7:10 pm
Hi,
Not working for me. I am not using the force scrollbars function.
The area for the image is 1106 pixels as given by GetClientRect().
When I first load up the PDF GetDisplayedArea() gives a width of 4955 at a zoom of 0.2232 which multiplies to 1106 pixels - no scrollbars.
I zoom in and get a width of 1529 at a zoom of 0.7232 which multiplies to 1106 pixels - with scrollbars. I would have expected a width of 1507 which would multiply to 1090 pixels in this case.
I am currently using a hard coded value of 16 pixels for the width of the scrollbar, but obviously I would prefer to use functions on the GdViewer to get this if possible to prevent future changes breaking my code.