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.
all_aceAsked:
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.

LischkeCommented:
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

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
LischkeCommented:
What now?
0
LischkeCommented:
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
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.