I’ve open a window with SDL_SetVideoMode (in MS
Windows environment). Now I want to do some operation
which requires a Windows handler. How can I retrieve
the handler of my window?
thanks
Phuoc Can HUA===== /_/_/_/_/_/_ www.huaonline.com
My Homepage is my Castle
P.S. On another note, just thinking about why one would want such a
thing might be for GUI type stuff. If that’s the case perhaps try FLTK
or wxWindows or other cross platform UI libs. There may even be some SDL
specific libs but I can’t say I know of any or how complete they are.
People may want to check this example of how to combine FLTK and SDL.
I’m a big fan of FLTK because it’s simple, small and the dimensions
don’t distort over different platforms. http://www.syntheticsw.com/~wizard/projects/fltk-demo/
Phuoc Can Hua wrote:>I’ve open a window with SDL_SetVideoMode (in MS
Windows environment). Now I want to do some operation
which requires a Windows handler. How can I retrieve
the handler of my window?
Thanks for the link. But when I tried to download the
win-32 demo it was a broken link
— grembo wrote:
P.S. On another note, just thinking about why one
would want such a
thing might be for GUI type stuff. If that’s the
case perhaps try FLTK
or wxWindows or other cross platform UI libs. There
may even be some SDL
specific libs but I can’t say I know of any or how
complete they are.
People may want to check this example of how to
combine FLTK and SDL.
I’m a big fan of FLTK because it’s simple, small and
the dimensions
don’t distort over different platforms.
I’ve open a window with SDL_SetVideoMode (in MS
Windows environment). Now I want to do some
operation
which requires a Windows handler. How can I
retrieve
the handler of my window?
The source link isn’t. Mind you it doesn’t compile but might be worth a
peek around.
Phuoc Can Hua wrote:>Thanks for the link. But when I tried to download the
win-32 demo it was a broken link
— grembo <@grembo> wrote:
P.S. On another note, just thinking about why one
would want such a
thing might be for GUI type stuff. If that’s the
case perhaps try FLTK
or wxWindows or other cross platform UI libs. There
may even be some SDL
specific libs but I can’t say I know of any or how
complete they are.
People may want to check this example of how to
combine FLTK and SDL.
I’m a big fan of FLTK because it’s simple, small and
the dimensions
don’t distort over different platforms.
I’ve open a window with SDL_SetVideoMode (in MS
Windows environment). Now I want to do some operation
which requires a Windows handler. How can I retrieve
the handler of my window?
You can use the API in SDL_syswm.h
See the “scrap” demo on the SDL website to see how this is done.
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment