Rendering context + WinAPI

Hello!

Obviously, it’s possible to create a gl rendering context bound to the application main window (or dialog window). I was wondering if it’s possible to create a rendering context for some ‘windows’ such as buttons, static frames and other controls. I tried to but I didn’t get satysfying result. How can I do that ? :slight_smile:

Thanks in advance!

I think buttons are not windows, but only ‘widgets’, they are graphical and interface tools attached to a window.

What do you exactly want to do ?

Originally posted by jide:
What do you exactly want to do ?
For instance, use OpenGL on top of a static frame or some button. It’s a pure curiosty. :wink:

Thanks!