Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: More multi-window woes...

  1. #1
    Member Regular Contributor
    Join Date
    May 2000
    Location
    Batavia, NY, 14020
    Posts
    259

    More multi-window woes...

    Here we go again with another installment of "How the hell do I fix this?!"

    I've got meself an ActiveX control, OpenGL-ized and all. Okay, I wrote it myself, so thats why it doesn't work right. The problem that I have is that - well, using ActiveX you've gotta think, its going to be multi-window. You'll have a window here, you'll have a window there... etc.

    Well, I've gotten most everything working right, except one teensy weensy little snag. The aspect ratio of the viewport is all screwed up. Here's the crux:

    Imaging two windows on the screen, both displaying a crossed axis, 90 degree angles. You send a "refresh" through the container application to reload the data in the ActiveX controls. Now, one (or two, or more) of the controls have an incorrect aspect ratio, ie: the crossed axis now contains an angle of something like 70 degrees rather than 90.

    I know it has to be something to do with active DC's and such, but I've tried everything I could think of to compensate for it.

    HELP!

    Thanks,

    Siwko
    - I am not opensource! -

  2. #2
    Member Regular Contributor
    Join Date
    May 2000
    Location
    Batavia, NY, 14020
    Posts
    259

    Re: More multi-window woes...

    n/m.

    I put wglMakeCurrent in the OnSize handler, and it seems as if all evils are fixed.

    Thanks anyways.

    Siwko
    - I am not opensource! -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •