?
Solved

OpenGL and CStatic

Posted on 1999-11-12
3
Medium Priority
?
503 Views
Last Modified: 2013-12-04
How can I use a CStatic (MSVC++) as an OpenGL rendering context?

I managed to use a groupbox with VCL from Borland C++ to display an OpenGL rendering context. But now I like to use a CStatic from MFC as a rendering context.
0
Comment
Question by:all_ace
  • 3
3 Comments
 
LVL 10

Accepted Solution

by:
Lischke earned 200 total points
ID: 2219343
Hi all_ace,

I'm not a C programmer (I'm using Delphi), but as nobody else commented here I'll try to help you as I have done quite a lot with OpenGL.

First I need to know if CStatic is a control with window (like a list box etc.). If yes then it is easy to create the rendering context, otherwise you cannot use it for this task as you only can render to device contexts either in memory, printer or associated with a window.

Ciao, Mike
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2252112
What now?
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2252456
Oops, thank you, didn't expect the points. If you have further question just ask... :-) (better you use the graphics area instead of the languages area, though).

Ciao, Mike
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

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

When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
No other job is as rewarding and demanding as building an iPhone app is. It is not really in the hands of the developer for the success of an iPhone app. Many factors operate jointly for every iOS application's success in the market.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Loops Section Overview

594 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