Forum: Win32/Win64 API (native code)
Delphi
by paritycheck,
17. Sep 2007
Ja aber die Systemeinstellungen werden von dieser Funktion nicht geändert d.h Du kannst während dein Programm läuft Aero so oft Du willst ein oder ausschalten aber wenn das Programm beendet wird ist Aero wieder aktiv.
...
DwmEnableComposition(DWM_EC_ENABLECOMPOSITION);
...
Forum: Win32/Win64 API (native code)
Delphi
by paritycheck,
17. Sep 2007
Der folgende Code deaktiviert Aero solange deine Anwendung gestartet ist.
const
DWM_EC_DISABLECOMPOSITION = 0;
DWM_EC_ENABLECOMPOSITION = 1;
function DwmEnableComposition(uCompositionAction: cardinal): cardinal; stdcall; external 'dwmapi.dll' name 'DwmEnableComposition';
procedure TForm1.Button1Click(Sender: TObject);
begin