I'm using MFC. I need to be able to scroll through the entire length of a PDF document that's open with one scrollbar. I can't see a built-in way to do this, so I'm trying to implement it using an external scrollbar. It's pretty easy to move to the correct page based on the scrollbar's position, but I can't figure out how to tell the control exactly where to scroll to (or even what position it's currently at) in the displayed page. How do I access this information?
~BenDilts( void );
Scroll whole document OR set absolute scroll position
Kind of...
Yes, I realize that function exists. I've played around with it a little. But while I can force it to scroll, I can't figure out a way to get feedback from it when a user manually scrolls up or down (or uses the mouse wheel if the scrollbar is turned off). Also, I can't figure out how exactly it decides how much to scroll. While a page is supposedly 13000 or so twips, I scroll down 150 twips and I'm at the bottom of the page.
Hello,
The ScrollWindow() method of the PDF Creator does receive TWIPS values as parameters. However, these values are not where you want to scroll to but how much you want to scroll from your current position.
In reference to your other question, ScrollWindow() or scrollbars unfortunately do not fire events.
Hope this helps?
The ScrollWindow() method of the PDF Creator does receive TWIPS values as parameters. However, these values are not where you want to scroll to but how much you want to scroll from your current position.
In reference to your other question, ScrollWindow() or scrollbars unfortunately do not fire events.
Hope this helps?