Delphi-Quellcode:
var
dwExStyle, dwStyle: Cardinal;
begin
dwExStyle := GetWindowLong(hWnd, GWL_EXSTYLE);
SetWindowLong(hWnd, GWL_EXSTYLE, dwExStyle and not WS_EX_APPWINDOW);
dwStyle := GetWindowLong(hWnd, GWL_STYLE);
SetWindowLong(hWnd, GWL_STYLE, dwStyle and not WS_OVERLAPPEDWINDOW);
end;
Naja, eigentlich Quatsch dafür 2 Variablen zu nehmen, aber naja
Chuck Norris has counted to infinity ... twice!