You have to make use of envrioment variables.

Code:
SDL_WINDOWID=Handleofform or panel
you can use the SDL_setenv to write this at application startup.

For more info check out

ftp://ptah.lnf.kth.se/pub/misc/sdl-env-v