Solved

MFC+OpenGL+ScrollView

Posted on 2004-09-21
1
467 Views
Last Modified: 2013-11-20
I have used CScrollView for my view class in order to do scrolling in an OpenGL window. The problem is that when i scroll vertically or horizontally, the viewport does not move with the scroll bars .

Is there any method through which scrolling can be implemented in an OpenGL window so that when we scroll, it does scrolling in the same way like ordinary GDI windows.


Thank you
0
Comment
Question by:vadim85
1 Comment
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 125 total points
ID: 12118914
No, OpenGL doesnt take care about scrolling position or even windows viewport information. It has its own transformation matrices including translations (scrolling).
So, if you want to take effect, you must "synchronize" scrolling information with translation values. You have to trap scrolling events, vary transformation matrix values (x and y) and redraw opengl view.
You must use  glTranslate() function.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 37
mixString challenge 36 111
Excel Use VBA to get user's Mac Address for their computer 5 107
iSeries DB2 Query 2 89
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now