Einzelnen Beitrag anzeigen

CCRDude

Registriert seit: 9. Jun 2011
677 Beiträge
 
FreePascal / Lazarus
 
#12

AW: messagebox hinter modularen Fenstern

  Alt 12. Mär 2014, 08:02
Das ist bekannt als "ghosting", der mMn praktischste Workaround ist, am Anfang des Codes (dpr, oder initialization einer Unit) MSDN-Library durchsuchenDisableProcessWindowsGhosting aufzurufen:


Delphi-Quellcode:
procedure DisableProcessWindowsGhosting;
var DisableProcessWindowsGhostingImp: procedure;
begin
   {$IFNDEF FPC}
   DisableProcessWindowsGhostingImp :=
      GetProcAddress(GetModuleHandle('user32.dll'),
                     'DisableProcessWindowsGhosting');
   if (@DisableProcessWindowsGhostingImp <> nil) then begin
      DisableProcessWindowsGhostingImp;
   end;
   {$ENDIF FPC}
end;
  Mit Zitat antworten Zitat