SDL and windows.h

I’m beginner with SDL, I’m developing a cellular automata with SDL and it seem
all well. I create a screen of 500x500 pixel.

I wont to insert my cellular automata screen inside a window created with
<windows.h> but I don’t know how to. It is possible?

Someone can help me???

thank very much,
Valentino.

Hello Valentino,

Friday, November 24, 2006, 2:55:17 PM, you wrote:

I’m beginner with SDL, I’m developing a cellular automata with SDL and it seem
all well. I create a screen of 500x500 pixel.

I wont to insert my cellular automata screen inside a window created with
<windows.h> but I don’t know how to. It is possible?

SDL is designed to hide all that from the user. It is possible to open
a normal Window and then pass that to SDL (look for SDL_WINDOWID) but
why would you want to do that when SDL can handle creating the window
for you?

If what you mean is that you want the graphics to appear in a window,
rather than fullscreen, well that’s easy - just dont pass the
SDL_FULLSCREEN flag to SDL_SetVideoMode()–
Best regards,
Peter mailto:@Peter_Mulholland

Maybe he wants to have the SDL stuff inside a child window, so he can
combine it with standard Windows GUI? I don’t know whether it will
work though, with SDL event handling and such.On 11/24/06, Peter Mulholland wrote:

SDL is designed to hide all that from the user. It is possible to open
a normal Window and then pass that to SDL (look for SDL_WINDOWID) but
why would you want to do that when SDL can handle creating the window
for you?


Rasmus Neckelmann