Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpluimers/d98a27729d59720f47c1ed73ef3f3662 to your computer and use it in GitHub Desktop.
Save jpluimers/d98a27729d59720f47c1ed73ef3f3662 to your computer and use it in GitHub Desktop.
EnumWindows(@EnumWindowsProc, LPARAM(0));
function EnumWindowsProc(Wnd: HWND; Form: TForm): BOOL; stdcall;
var
Buffer: array [0 .. 99] of Char;
ClassName: string;
begin
GetClassName(Wnd, Buffer, 100);
ClassName := string(Buffer);
if ClassName = 'TDesignerHintWindow' then
SendMessage(Wnd, WM_CLOSE, 0, 0);
Result := True;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment