Solved

Regarding Scrolling

Posted on 1998-10-28
3
205 Views
Last Modified: 2013-11-20
Hai,
I have two window one is Main window ( nothing but CScrollView) and the other is Outputwindow which is nothing but CListbox ( Note: same as VC ide).
Main Window has lot of rect objects. ie I am drawing
a chart which has connected rect objects.

When I there is any error present in the outputwindow,I have to go to that particular rect object which has the error.
RectObject has logical points.

CScrollView has also Zoom facility.

I am unable to go to that particular rect ( because of normal as well zoom view).

Whether there is any function which gives the current scroll position?

Eagerly waiting for the reply.

Rajah J
0
Comment
Question by:rajahj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:rakeshkalra
ID: 1323964
use GetScrollPos
0
 

Author Comment

by:rajahj
ID: 1323965
GetScrollPos doesn't return properly.
Even when my view doesn't have horizontal scroll it returns the value.
So I don't think so this function is suitable to me.

When my zoom value is less than 100( there is no horizontal and vertical scroll) then also getscrollpos returns the value.

Thanks for the eagerly reply and awaiting for more.

0
 

Accepted Solution

by:
gatkinso earned 50 total points
ID: 1323966
CPOint CScrollView::GetScrollPosition
return the horizontal and vertical positions (in logical units) of the scroll boxes as a CPoint object. Call GetScrollPosition when you need the current horizontal and vertical positions of the scroll boxes in the scroll bars. This coordinate pair corresponds to the location in the document to which the upper-left corner of the view has been scrolled.

GetScrollPosition returns values in logical units. If you want device units, use GetDeviceScrollPosition instead.

This IS the answer you are looking for (even if you don't like it).

0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question