Forms Delphi

Title: How to determine if the window is a Unicode window
procedure TForm1.Button1Click(Sender: TObject);
begin
{determine if the window is a Unicode window}
if (IsWindowUnicode(Form1.Handle)) then
Button1.Caption := 'This window is a Unicode window'
else
Button1.Caption := 'This window is not a Unicode window'
end;