[SDL] How to put SDL window into an application on Windows
Sylvain Beucler
beuc at beuc.net
Thu Aug 16 22:56:09 PDT 2007
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
More information about the SDL
mailing list