??不太清楚你的意思~~不是这个吧?~~procedure TForm1.Button1Click(Sender: TObject); begin Application.Title := '其实你不明白伴水的心'; end;
谢谢指点! 我当时是想调用API函数 shell_notifyicon
//分析一下VCL,其实是用SetWindowText()Api函数实现的 :) ~~ procedure TApplication.SetTitle(const Value: string); begin if FHandleCreated then begin if (GetTitle <> Value) or (FTitle <> '') then begin SetWindowText(FHandle, PChar(Value)); FTitle := ''; end; end else FTitle := Value; end;
begin
Application.Title := '其实你不明白伴水的心';
end;
我当时是想调用API函数 shell_notifyicon
procedure TApplication.SetTitle(const Value: string);
begin
if FHandleCreated then
begin
if (GetTitle <> Value) or (FTitle <> '') then
begin
SetWindowText(FHandle, PChar(Value));
FTitle := '';
end;
end
else
FTitle := Value;
end;