Autor Beitrag
Xadron
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 102

XP
C++, D7, HTML
BeitragVerfasst: Mo 09.04.07 06:35 
Ich hatte mir mal den code gesucht:

ausblenden Quelltext
1:
2:
3:
4:
var wh: HWND; //Fenster Handle
  begin
   SetWindowPos(wh,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE + SWP_NOMOVE);
  end;

Nur er geht nicht wirklich. Ich kann mir vorstellen, dass man das Handle von Form1 dort eintragen muss.
Habe aber gelesen, dass sich das handle jedesmal verändert, sodass ich niemal das korrekte handle habe.
Kann man von Form1 das Handle auslesen oder ihm ein Handle zuweisen?

_________________
|x-32:88x+39-3|+3:21=47-4x
Xadron Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 102

XP
C++, D7, HTML
BeitragVerfasst: Mo 09.04.07 07:42 
jetzt ist mir nach längeren probieren eingefallen, dass man ja nicht das handle direkt eintragen muss, sondern es indirekt einsetzen kann:

ausblenden Quelltext
1:
SetWindowPos(Form1.handle,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE + SWP_NOMOVE);					

_________________
|x-32:88x+39-3|+3:21=47-4x
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mo 09.04.07 07:52 
Wie auch in deinen anderen Postings, SetWindowsPos ist eine function Cursor drüber und dort steht welche Parameter erwartet werden. :wink:

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)