Gets the distance, in pixels, that a document has scrolled vertically.
HRESULT IHTMLWindow7::get_pageYOffset(long *p);
- The distance the document has been scrolled.
Returns S_OK if successful, or an error value otherwise.
When you scroll a document vertically, some content is moved outside the view of the display area. The IHTMLWindow7::pageYOffset property returns the difference between the first pixel in the content and the first pixel currently in view.