background drawing

Hi,

How can I write a program that creates a windows, draws some objects, and capture the window without showing the window to the user. It works fine with the window displayed but it does not work without the window displayed. I don’t want to show the window to the user.

Take a look at pbuffers:
http://oss.sgi.com/projects/ogl-sample/registry/ARB/wgl_pbuffer.txt