Einzelnen Beitrag anzeigen

Shrek_III

Registriert seit: 15. Dez 2004
Ort: Handewitt
25 Beiträge
 
Delphi XE5 Enterprise
 
#3

Re: Minimize einer anderen Application blocken

  Alt 19. Dez 2004, 10:59
Auch wenn ich es gerne so hätte, aber ich glaube, daß dem Problemchen nicht so einfach beizukommen ist...

Zitat:
GWL_WNDPROC
Sets a new address for the window procedure.

Windows NT/2000/XP: You cannot change this attribute if the window does not belong to the same process as the calling thread.
MSDN-Library durchsuchenSetWindowLong

Also habe ich auch mit meinem Code
Code:
function EditD2Window (hD2Win, uMsg, wParam, lParam: DWORD): DWORD; stdcall;
var
  messagefound : boolean;
begin
  messagefound := false;
  CASE uMsg of
    WM_KILLFOCUS: begin
                    messagefound := true;
                  end;
  end;
  if messagefound = false then Result := CallWindowProc(@OldWinProc,hD2Win,uMsg,wParam,lParam)
  else result := 0;
end;


...
begin
  ...
  OldWinProc := SetWindowLong (GeneralD2Handle, GWL_WNDPROC, Integer (@EditD2Window));
end;
wenig Chancen.


oder mache ich da grundsätzlich etwas falsch?!?
So long fellas

Shrek_III
  Mit Zitat antworten Zitat