OpenGL and CStatic

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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
What now?
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Game Programming

From novice to tech pro — start learning today.