OpenGL and CStatic

Posted on 1999-11-12
Medium Priority
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.
Question by:all_ace
  • 3
LVL 10

Accepted Solution

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
LVL 10

Expert Comment

ID: 2252112
What now?
LVL 10

Expert Comment

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

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