Solved

MFC+OpenGL+ScrollView

Posted on 2004-09-21
1
479 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 112
while loop over for loop 7 116
fizzArray  challenge 1 109
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 1,348
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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