How to draw different window(dialog box) by the SDL

Hello all,
I met a problem about how to draw different window by SDL in the
Windows, I have tried the SDL draw picture in the main window,it can
succeed, but when I want to draw picture in other Dialog,I failed.
Can the SDL do that? Thank you very much!_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it’s FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

SDL can only handle one display surface at a time - and that applies
even if you use the window ID hack, since that only affects the
initialization of the display.

However, this restriction does not apply if you use the “fake” display
surface method commonly used to integrate SDL with GUI toolkits.
Under Windows’ native toolkit, you could probably set up a DIB or
similar, and wire an SDL surface to it’s pixel data. You can use as
many of those as you like, as well as one “real” SDL display surface.

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Friday 15 April 2005 09.06, gcc chentob wrote:

Hello all,
I met a problem about how to draw different window by SDL in
the Windows, I have tried the SDL draw picture in the main
window,it can succeed, but when I want to draw picture in other
Dialog,I failed.
Can the SDL do that? Thank you very much!

Hello,

SDL can only handle one display surface at a time - and that applies
even if you use the window ID hack, since that only affects the
initialization of the display.

However, this restriction does not apply if you use the “fake” display
surface method commonly used to integrate SDL with GUI toolkits.
Under Windows’ native toolkit, you could probably set up a DIB or
similar, and wire an SDL surface to it’s pixel data. You can use as
many of those as you like, as well as one “real” SDL display surface.
I don’t want to use “real” SDL display surface,because I use YUV
surface to draw video (not DIB,it is cost too much cpu resource).
Is there any way to do it? Thank you very much!_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it’s FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/