Created
March 4, 2017 18:42
-
-
Save jpluimers/d98a27729d59720f47c1ed73ef3f3662 to your computer and use it in GitHub Desktop.
by Attila Kovacs - GExperts - https://plus.google.com/108426155215159556558/posts/5aerMRrx9ip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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