Autor Beitrag
breakdancer1111
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: So 12.02.06 18:35 
Hallo,
ich möchte einen normalen Windows Ordner schließen, allerdings
kommt nur ein Geräusch aus meinen Boxen und den Ordner bleibt offen.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
  DirHandle: hWnd;
begin
  DirHandle := FindWindow(nil,'Neuer Ordner');
  if DirHandle <> 0 then SendMessage(DirHandle,WM_CLOSE,0,0);
end;


Wenn ich das ganze mit einem Programm wie zum Beispiel dem
Notepad mache funktioniert es.

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Mo 13.02.06 19:45 
ich vermute, du sucht einen Ordner im Explorer, dann solltest du diesen Schließen.
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?