I’m writing a 2D application.
My application is a MDI application.
Each view shares its Call Lists with an unvisible view in the background.
It’s work fine. I have to load only once my ‘object drawing library’ to share it with the other views (scenes in views are not the same).
Now I’m trying to print a view.
All drawings created in ‘Immediate Mode’ are printed but I can’t print the shared display lists.
Because the PixelFormat of the RC of my shared view has these flags:
PFD_DRAW_TO_WINDOW
PFD_SUPPORT_OPENGL
PFD_DOUBLEBUFFER
and the PixelFormat of the Printer RC has these flags:
PFD_DRAW_TO_BITMAP
PFD_SUPPORT_OPENGL
PFD_STEREO_DONTCARE
I have read that to share Call Lists, Pixel Formats must be the same.