Hi YangXiao,

What have been done in your PaintThreadProc()? Have you created a new
widget on top of the OSG viewer window and tried to update it? If you want
to do so, you'd better get the handle of viewer window first, otherwise your
widget will surely blink.

Wang Rui
2008/10/27 YangXiao <[EMAIL PROTECTED]>

> Hi everyone:
>                 When i update my scene in PaintThreadProc() function,
> I found my windows to blink ( to  twinkle).
> Why ?
>
>  while(!viewer.done())
>  {
>   if (PeekMessage(&msg,NULL,0,0, PM_REMOVE))
>   {
>    TranslateMessage(&msg);
>    DispatchMessage(&msg);
>   }
>   if (PaintThreadProc(hWndPaint,root.get(),viewer) == -1)
>   {
>
>    viewer.setQuitEventSetsDone(true);
>    break;
>   }
>   viewer.frame();
>
>  }
>
> Best regards.
> YangXiao.
>
> ------------------------------
> 雅虎邮箱,您的终生邮箱! <http://cn.mail.yahoo.com/>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to