Setting Parent Window handles under Delphi 1.0

I'd like to set a window in my Delphi application to be the child of the main window in
another app.  I want a kind of parasitical toolbar behavior.  I'm using some of the win
functions, like this:

procedure TForm4.FormCreate(Sender: TObject);
var
hdesktop,h: hwnd;
begin
hdesktop := findwindow(nil,'Windows API');
setparent (form4.handle,hdesktop);

end;

However, I'm getting a type mismatch error in the setparent function call.  Both parameters
are declared as hwnd, yet the function fails.  Any ideas?

Thanks,

Robert Moskal

___________________
Robert Moskal
Brooklyn, USA