SDL_WINDOWID hack under Windows?

Hi,

I’m currently writing a program with wxWindows (wxGTK under Linux/X11) for
the GUI and SDL for drawing within the main window, using the SDL_WINDOWID
hack.

Since I’ll have to port the program to Windows later I’m wondering if this
hack also works under Windows, and if not, whether there is another way to
use SDL for drawing within a normal Windows-GUI application.

Has anyone already done something like this, or does anyone have some
information on how to do it?

Thanks,
Dominic

I think that you just can’t do it. Unless you
hack the SDL code :((> ----- Original Message -----

From: bugcreator@gmx.de (Dominic Sacre)
To:
Sent: Tuesday, May 29, 2001 1:02 PM
Subject: [SDL] SDL_WINDOWID hack under Windows?

Hi,

I’m currently writing a program with wxWindows (wxGTK under Linux/X11) for
the GUI and SDL for drawing within the main window, using the SDL_WINDOWID
hack.

Since I’ll have to port the program to Windows later I’m wondering if this
hack also works under Windows, and if not, whether there is another way to
use SDL for drawing within a normal Windows-GUI application.

Has anyone already done something like this, or does anyone have some
information on how to do it?

Thanks,
Dominic

Paulo Pinto wrote:>

I think that you just can’t do it. Unless you
hack the SDL code :((

----- Original Message -----
From: “Dominic Sacr?”
To:
Sent: Tuesday, May 29, 2001 1:02 PM
Subject: [SDL] SDL_WINDOWID hack under Windows?

Hi,

I’m currently writing a program with wxWindows (wxGTK under Linux/X11) for
the GUI and SDL for drawing within the main window, using the SDL_WINDOWID
hack.

Since I’ll have to port the program to Windows later I’m wondering if this
hack also works under Windows, and if not, whether there is another way to
use SDL for drawing within a normal Windows-GUI application.

Has anyone already done something like this, or does anyone have some
information on how to do it?

Thanks,
Dominic

Nope it doesn’t work. In fact it works a bit since the SDL and GTK
windows are linked logically but not phisically. I mean that under Linux
the SDL window is inside the GTK one, but under Windows the SDL window
is beside the gtk one. But all the events of the gtk ones can react on
the sdl one.