[SDL] How to put SDL window into an application on Windows

Bryan Arant brin309 at gmail.com
Fri Aug 17 07:27:50 PDT 2007


I still think, that in situations like this (just speculating) that it is
letting SDL still create the window and setting the environment variable
(HWND) and then GTK or Ogre (in my experience) will pick it up via that.

-- 
-Bryan P. Arant
[Brin || AfroFire]

On 8/16/07, Sylvain Beucler <beuc at beuc.net> wrote:
>
> Did you check http://sourceforge.net/projects/gtksdl/ ?
>
> Apparently it uses some tricks to make SDL use an existing window.
>
> --
> Sylvain
>
> On Thu, Aug 16, 2007 at 07:53:14PM -0400, Josh Nikaji Stefanski wrote:
> > I don't think that's possible with how SDL is structured (at least
> > without rewriting a lot of the video code). If you wanted to still use
> > the blitting functions with an SDL_Surface you would probably have to
> > write your own surface to picturebox (or similar) copying code.
> >
> > Josh
> >
> > Mine wrote:
> > > Hi All,
> > >     I'm developing a media player using SDL on Windows.
> > >     I want to put the SDL window into my own application, as a draw
> > > region instead of a new window. But I can't find a way to do that. As
> > > long as I call SDL_SetVideoMode, a new windows is popped. Also I
> checked
> > > the source code of SDL, it shows that the window is created when
> > > initializing video sub system, after SetVideoMode, the size and
> position
> > > is set and it is shown as a new window.
> > >     Is there any way to set the window as a "Control" in MFC (e.g.
> > > picture control), instead of creating a new window?
> > >
> > > --
> > > Mine
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070817/43ea549c/attachment.htm 


More information about the SDL mailing list