Hi Johan,

Johan Robben wrote:
> 
> I’m trying to create an ActiveX component which contains an OpenSG window.
> 
> I receive a HWND window handle. Does anyone have an idea how to attach 
> an OpenSG window to this handle?

The best way is to use a PassiveWindow. Try to find an example for an 
ActiveX control that uses OpenGL, and then open a PassiveWindow and 
redraw inside the callback that draws OpenGL. Tiny caveat: the 
PassiveWindow does not do any buffer swapping itself, so don't forget 
the buffer swap.

Hope it helps

        Dirk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to