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 3 of 3

Thread: Problem with ActiveX control

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2004
    Posts
    1

    Problem with ActiveX control

    Hello,

    I am developing an activex control using opengl. It is used to display a 3D image. When the control gets WM_PAINT messages i originally had it redrawing the image every time. This meant that even as the webpage was scrolled the image was being redrawn, this caused the image to jump and cover html elements of the webpage.

    I now have the control only redraw the image if the user rotates or moves the image. This has solved the "jumping" problem, however if the control is rotated or moved when any area of the image is offscreen ( for example half of the control is on half off screen ) the calls to glclear don't seem to work on the offscreen areas, and hence leave a strange blur or the image.

    Am i missing something here as no matter what i try it seems to leave this blurring.

    Thanks in advance.

  2. #2
    Intern Contributor
    Join Date
    Feb 2000
    Location
    England
    Posts
    72

    Re: Problem with ActiveX control

    You need to handle the window resizing.

    Look at the glViewport funcion.

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: Problem with ActiveX control

    Also make sure that the CLIPCHILDREN window style is correctly set.
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

Posting Permissions

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