I think the topic is self explaining.
I just want to know if I can draw a button or a scrollbar into an OpenGL window, or do I have to draw it myslef using the OpenGL functions instead of the windows GDI functions?
I just want to create a Window with scroll bars which supports OpenGL drawing routines.
Bad thing, don’t do it. Results of mixing GDI and OpenGL aren’t really predictable (my experience)
So it is possible?
Until now, all test I have written crashes.
It’s just so that I need scrollbars and I don’t want to calculate and draw them with OpenGL myself.
BTW, I’m using a glOrtho projection.
[This message has been edited by Menne (edited 02-04-2002).]
MSDN’s PIXELFORMATDESCRIPTOR help :
PFD_SUPPORT_GDI: The buffer supports GDI drawing. This flag and PFD_DOUBLEBUFFER are mutually exclusive in the current generic implementation.
Look for a pixel format that support PFD_SUPPORT_GDI, but I doubt you’ll find an interesting one.