Einzelnen Beitrag anzeigen

Benutzerbild von Die Muhkuh
Die Muhkuh

Registriert seit: 21. Aug 2003
7.332 Beiträge
 
Delphi 2009 Professional
 
#2

Re: Fensterposition auslesen und setzen!

  Alt 10. Nov 2008, 20:30
Probier mal so:

Delphi-Quellcode:
var
  p: TWindowPlacement;
  hhd: HWND;
begin
  hhd := StrToInt(CasinoWindows[0]);
  p.length := SizeOf(TWindowPlacement);
  p.rcNormalPosition.Left := StrToInt(CasinoLeft[1]);
  p.rcNormalPosition.Top := StrToInt(CasinoTop[1]);
  p.rcNormalPosition.Right := StrToInt(CasinoRight[1]);
  p.rcNormalPosition.Bottom := StrToInt(CasinoBottom[1]);
  SetWindowPlacement(hhd, @p);
  Mit Zitat antworten Zitat