Einzelnen Beitrag anzeigen

LokutusvB

Registriert seit: 18. Jul 2006
277 Beiträge
 
Delphi XE6 Enterprise
 
#5

Re: GetWindowPlacement/GetWindowRect gibt als Pos immer 0 zu

  Alt 11. Aug 2009, 13:13
Ich habe folgendes probiert:
Delphi-Quellcode:
if GetWindowPlacement(twHandle, @tw1Plct) then begin
  //ShowMessage('Links: ' + IntToStr(tw1Plct.rcNormalPosition.Left));
  //ShowMessage('Oben: ' + IntToStr(tw1Plct.rcNormalPosition.Top));
  //ShowMessage(IntToStr(tw1Plct.ptMinPosition.y));
  tw1Plct.rcNormalPosition.Left := tw1Plct.rcNormalPosition.Left + 50;
  tw1Plct.rcNormalPosition.Left := tw1Plct.rcNormalPosition.Top + 50;
  SetWindowPlacement(twHandle, @tw1Plct);
end else GetLastError;
Oder ist das verkehrt? Und hier wurde nichts angezeigt, keine Fehlermeldung.
MFG
LokutusvB
  Mit Zitat antworten Zitat