View Full Version : I want to draw onto multiple forms.
08-26-2002, 06:42 AM
I use visual basic. I can draw onto one form. I want to draw onto three or more forms and have them all display at the same time on my screen in one program. Has anyone had experience with this? I know that I will somehow have to change the handle to which the openGL draws. Anyone know of a tutorial for this. There aren't many visual basic tutorials out there. So far I have been using NeHe. I suppose I could translate a C++ version.
08-27-2002, 04:55 AM
I thought I would reply to my own post to keep it on top.
I've done this by creating an ActiveX control that handles all of the GL rendering. Each form in the MDI app has an instance of this control.
When you want to render to a different form, just be sure to use wglMakeCurrent to select the correct RC.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.