Results 1 to 3 of 3

Thread: I want to draw onto multiple forms.

  1. #1
    Senior Member Regular Contributor
    Join Date
    Aug 2002
    Location
    Tulsa,OK
    Posts
    113

    I want to draw onto multiple forms.

    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.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2002
    Location
    Tulsa,OK
    Posts
    113

    Re: I want to draw onto multiple forms.

    I thought I would reply to my own post to keep it on top.

  3. #3
    Member Contributor
    Join Date
    Jul 2001
    Posts
    59

    Re: I want to draw onto multiple forms.

    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.

Similar Threads

  1. draw multiple objects with different MVP
    By 3DPrgmer in forum OpenGL: Basic Coding
    Replies: 39
    Last Post: 11-07-2016, 09:13 AM
  2. how to draw multiple different objects?
    By Ruggero Visitnin in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-16-2014, 11:11 AM
  3. Rendering terrain - multiple draw calls or draw whole VBO?
    By rakketh in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-19-2013, 02:26 PM
  4. Using for to draw multiple objects?
    By Zyzix in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-20-2012, 12:55 PM
  5. I want to draw onto multiple forms.
    By John Jenkins in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 09-24-2002, 08:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean