Results 1 to 2 of 2

Thread: Window Updating

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2002
    Vilnius, LT, Lithuania

    Window Updating

    Hello, I've got a strange situation.
    It goes fine on Windows NT but works incorrectly, for example, on Windows 2000.
    My application is dialog based and has some OpenGL (derived from CWnd) windows on it.
    After initializing of the dialog all OpenGL window have to start rendering. However at the first time it doesn't happen. The windows containt something like garbages.
    But after the second rendering time they containt properly graphics.
    I have tried to give the focus to them, invalidate and so on - unfortunately.
    Why it happens? What is it and what I should do?
    Tnank you in advance,
    Romanas Puisa

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Fargo, ND

    Re: Window Updating

    Are you doing something like this in PreCreateWindow()?

    cs.lpszClass = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW|CS_DBLCL KS|CS_OWNDC,

    Most notably, setting the CS_OWNDC...
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. updating window from another file
    By jayaprakash in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-17-2009, 11:16 AM
  2. updating window
    By jayaprakash in forum OpenGL: Windows
    Replies: 0
    Last Post: 02-17-2009, 05:37 AM
  3. updating window
    By jayaprakash in forum OpenGL: Linux
    Replies: 0
    Last Post: 02-17-2009, 05:36 AM
  4. updating an existing opengl window
    By yaba in forum OpenGL: General
    Replies: 5
    Last Post: 08-01-2002, 05:41 AM
  5. rendering somewhere into memory - not updating the window....
    By XFire in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 04-09-2002, 08:54 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