{修改目标窗口标题}
//调用 SetWindowTextA('Form1','HellWord');
function SetWindowTextA(oldtext:string;newtext:string):Boolean;
var    h:HWND;
begin
    Result:=false;
    h:=Findwindow(nil,Pchar(oldtext));
//PansiChar=Pchar

    setWindowText(h,Pchar(newtext));
    if h <> 0 then 
              Result:=True;
end;
 
//SetWindowText
//声明:
SetWindowText(
hWnd: HWND; {窗口句柄}
lpString: PChar {新标题串指针}
): BOOL




相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-10-29
  • 2021-12-19
  • 2021-08-26
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2022-01-16
  • 2022-01-10
  • 2022-01-01
  • 2022-12-23
  • 2022-01-12
相关资源
相似解决方案