Hello,
I am making a GUI using Visual C++ 6.0 in which I have 2 dialogs and I have to draw some textures on both the dialogs using OpenGL.
One is the Main Dialog which has a submenu. On clicking the submenu other dialog opens.
I am finding two problems here:
1) The OnCreate function of OpenGL generates the handle for the window "hWnd=GetSafeHwnd()", but since I have to draw images on both the dialogs and set timers for them (e.g.,SetTimer(hWnd,1,10,NULL)), I need two different handlers.
If I use the same handler in both dialogs, it draws images only on the main dialog.
2) I need to work simultaneously on both the dialogs. But, if I minimize the second dialog, the main dialog is also minimized and if i close it the other one also closes.
I should be able to work independently on both. How is this possible?
Please help!!
Regards,
Timkee