[Gtk-sharp-list] Native Window Handles

Andy Selvig ajselvig at gmail.com
Sun Feb 15 17:12:45 EST 2009


Why maintain two separate code bases for Windows and Linux? The Tao OpenGL
wrappers (http://taoframework.com/) work very well on both platforms. Used
with the Gtk# OpenGL widget mentioned below, there's no need to interact
with native window handles.

On Sun, Feb 15, 2009 at 12:41 PM, Christian Hoff <christian_hoff at gmx.net>wrote:

> You could use gdk_win32_hdc_get. See the gtkdotnet/Graphics.cs file in
> the Gtk# repository for a small usecase.
>
> You might also want to look into the Gtk# OpenGL widget:
> http://sourceforge.net/projects/glwidget/
>
> Christian
>
> Justin Holewinski wrote:
> > Using gtk-sharp, is it possible to obtain the native window handle of
> > a widget (e.g., HWND on Windows)?  In other words, is there an
> > equivalent to Form.Handle from WinForms?
> >
> > I am developing a 3D graphics application and need this handle to
> > create a Direct3D context on Windows and OpenGL contexts on
> Windows/Linux.
> >
> > Thanks!
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
>
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20090215/d6d6627b/attachment.html 


More information about the Gtk-sharp-list mailing list