View Full Version : Child Window and OpenGL
02-09-2003, 11:03 PM
I've made a windows where there is a OpenGL child windows inside. But when i resize the window the OpenGL windows's limits don't change and i don't find whitch procedure or function i could use.
02-10-2003, 04:59 AM
When the parent window changes size add a MoveWindow( hWndChild, x, y, w, h, true) call in the resize event handler.
02-11-2003, 07:44 PM
will u pls elaborate the solution??
i also have the samw problem.
02-12-2003, 04:17 PM
I believe prashantgp has created a program the uses Child Windows using glutCreateSubWindow, so he might be able to help you. I can help you some, but all I can say is that this is an example of how to use a glutCreateSubWindow:
glutCreateSubWindow(int win, int x, int y, int width, int height);
"int win" is known as the Sub-Window name, so prashant might be able to help you.
02-12-2003, 10:55 PM
Thank's for helping me...
I don't use glut for creating windows, so i will try to use the command MoveWindows
there may be an easier way, but i just figure out my windows positions as a percentage of the screen area. then i do some simple calculations based upon the new window XY
iX = LOWORD(lParam);
iY = HIWORD(lParam);
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.