SDL in a map editor?

I was wondering if I could put an SDL surface inside some other window, so I
could make a map editor with VC++ or Delphi and have my game library draw
the map. :o