Re: Embed movie player using mplayer - How to get the wid on Windows?



Hi Jens,

Thanks for the reply. That's exactly what I need. I just stuck in a error when change from GDK_WINDOW_XID to GDK_WINDOW_HWND.

The original line:

*p_windowID = GDK_WINDOW_XID(Glib::unwrap(get_window()));

Changed to:

*p_windowID = GDK_WINDOW_HWND(Glib::unwrap(get_window()));

The error is:
gui/Player.cpp:32: error: invalid conversion from `void*' to `int'

Thanks in advance!
P. F. Smorigo



On Wed, Aug 20, 2008 at 17:31, Jens Georg <***> wrote:

>
> How I get the wid of a process on Windows? Is it possible?
>
> I'm cross-compiling using mingw on linux and use gdkx.h to get the
> window id.

There's gdkwin32.h and in there the GDK_WINDOW_HWND macro, giving you
the equivalent of X11's window id, but you'll need some ifdef magic
here.

http://svn.gnome.org/viewvc/gtk%
2B/trunk/gdk/win32/gdkwin32.h?revision=20900&view=markup







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]