Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussões

OpenGL within a MDI app child window?

luleandy
Principiante
895 Visualizações
Is it possible to draw with OpenGL to a child window of a MDI application? Where do you put the OpenGL code?

I admit i'm finding this win api pretty confusing.. My program works great as a quickwin app, but the openGL window is seperate from the client win, which i don't like, and when i close it, the whole program goes with. Can this be fixed in quickwin?

A nudge in the right direction would be greatly appreciated!
/Andy
0 Kudos
2 Respostas
luleandy
Principiante
895 Visualizações
Okay..
forget everything but the first question:
Is it possible?! A simple yes or no here can save me a lot of time. I want multiple windows, at least one with openGL, all within one client window.
Steven_L_Intel1
Funcionário
895 Visualizações
I would think so. Look at the PUZZLE sample - this is a "Windows Application" (not QuickWin) - it calls CreateWindow and then sits back and lets the window's registered WndProc handle the messages and do the actual work. I would think this could be extended to MDI without difficulty.

Steve
Responder