View Full Version : More multi-window woes...

10-25-2000, 10:11 AM
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.




10-25-2000, 10:35 AM

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

Thanks anyways. http://www.opengl.org/discussion_boards/ubb/smile.gif