Is there a way to draw with SDL in a windows window?

I am getting started using SDL and was wondering if I can use SDL inside a
windows window.—
Jeffrey D. Means
CIO For MeansPC
@Jeff_Means

Jeff Means wrote:

I am getting started using SDL and was wondering if I can use SDL inside a
windows window.

SDL supports Windows, if that’s what you’re asking. Getting SDL to
display inside an arbitrary window of your choosing is a bit tricky, but
can be done. Much easier to just use SDL_SetVideoMode and let SDL create
its own window.

-John–
John R. Hall, KG4RUO
http://www.overcode.net

I really want to be able to use some of the nifty parts of windows ie.
dialog boxes and drop down menus that I don’t have to completly reinvent the
wheel for…—
Jeffrey D. Means
CIO For MeansPC
@Jeff_Means

----- Original Message -----
From: overcode@overcode.net (John R. Hall)
To:
Sent: Saturday, December 07, 2002 8:49 PM
Subject: Re: [SDL] Is there a way to draw with SDL in a windows window??

Jeff Means wrote:

I am getting started using SDL and was wondering if I can use SDL inside
a

windows window.

SDL supports Windows, if that’s what you’re asking. Getting SDL to
display inside an arbitrary window of your choosing is a bit tricky, but
can be done. Much easier to just use SDL_SetVideoMode and let SDL create
its own window.

-John


John R. Hall, KG4RUO
http://www.overcode.net


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Jeff Means wrote:

I really want to be able to use some of the nifty parts of windows ie.
dialog boxes and drop down menus that I don’t have to completly reinvent the
wheel for…

Just understand that by doing so you’ll lose one of SDL’s most useful
features, cross platform portability. You might consider using ParaGUI
to construct a GUI inside the SDL window.

However, there’s nothing to stop you from opening other windows while
your SDL app is running (unless you’re in fullscreen mode), though I’m
not entirely sure how the event loops would work.

-John–
John R. Hall, KG4RUO
http://www.overcode.net

Is there any trick to create more than one window inside one SDL-app?
I was messing around with the sdl-source a little, but kinda lost track on
the attempt. was i was was an openGL window and a seperate window with
editor tools. Seems like there is only one graphics-context-variable
defined in the sdl-headers, so i would be interested if something like a
multiple-windows hack could be done or does exist?

Matthias–
Marix eMonkey 2002

Suggestions for the SDL_Logo:
http://www.8ung.at/cyberpunxnetwork/SDL_Logo

personal webpage:
http://www.marix.madsite.de