Thanks!  gdk_win32_drawable_get_handle() was exactly what I was looking
for.  That, and disabling double-buffered widget drawing since Direct3D
implements its own double-buffering and writes directly to the window
surface.

On Sun, Feb 15, 2009 at 1:41 PM, Christian Hoff <[email protected]>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  -  [email protected]
>> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>>
>>
>
>
>
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to