Update Window Caption (Title) - Delphi

DarkCoderSc
Jean-Pierre LESUEUR
var ATargetWindow := FindWindow(nil, 'Untitled - Notepad');
if ATargetWindow = 0 then
Exit();
var ANewCaption := 'Hello, World';
SetWindowText(ATargetWindow, ANewCaption);
Creating and researching code snippets takes time and effort. You’re welcome to share them through your own platforms, but please don’t forget to credit the original author, here: Jean-Pierre LESUEUR.
Featured Windows API
Created
April 24, 2025
Last Revised
April 24, 2025