How to move (drag & drop) a SDL_NOFRAME Window?

I’m using a SDL_NOFRAME window and want to allow user
to click on a certain area to move the window (as how
it normally works with the title bar).
Before I start writing complicate routine to handle
this I just want to know whether there are some
existing routines I have missed out.

Phuoc Can HUA=====
My Homepage is my Castle

Find local movie times and trailers on Yahoo! Movies.