CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Guest

    OpenGL in a CStatic Object

    I was wondering if anyone new if i could attach my OpenGL picture into a CStatic object on my dialog based program? I have tried making a subclass of CStatic called COpenGLStatic, and making a member variable of the Static object in the dialog box a COpenGLStatic object. And in the COpenGLStatic i would put all my openGL code. The program complies and runnes, but where the COpenGLStatic is on the dialog box nothing shows up. So if anyone can help me i would be a very happy programmer,
    Thanks . . .


  2. #2
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: OpenGL in a CStatic Object

    Check the OpenGL section of this site.
    If I am not mistaken, there is an article about
    using OpenGL in a dialog that could help.




  3. #3
    Guest

    Re: OpenGL in a CStatic Object

    I have tried thoses example for a dialog, but if i make a button in the dialog window it flickers. That is why i am trying to make the OpenGL inside the CStatic object . . .


  4. #4
    Join Date
    May 2000
    Posts
    1

    Re: OpenGL in a CStatic Object

    You can try this way:
    put a picture control in you dialog, add a formview to your project,
    create the formview in the picture, draw opengl in the formview.
    it may work



  5. #5
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266

    Re: OpenGL in a CStatic Object

    Is the static control a bitmap type?


    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured