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);
hdesktop,h: hwnd;
hdesktop := findwindow(nil,'Windows API');
setparent (form4.handle,hdesktop);


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?


Robert Moskal

Robert Moskal
Brooklyn, USA