歪
歪就歪
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, commctrl;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
hDesktop, hTemp : THandle;
FindInfo : LV_FINDINFO;
begin
hTemp := FindWindow('ProgMan', nil);
hTemp := GetWindow(hTemp, GW_CHILD);
hDesktop := GetWindow(hTemp, GW_CHILD);
FindInfo.flags := LVFI_STRING;
FindInfo.psz := PChar('Mydo
cuments');
if ListView_FindItem(hDesktop, 1, FindInfo) > 0 then
showmessage('WORK!!!');
end;
end.
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, commctrl;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
hDesktop, hTemp : THandle;
FindInfo : LV_FINDINFO;
begin
hTemp := FindWindow('ProgMan', nil);
hTemp := GetWindow(hTemp, GW_CHILD);
hDesktop := GetWindow(hTemp, GW_CHILD);
FindInfo.flags := LVFI_STRING;
FindInfo.psz := PChar('Mydo
cuments');
if ListView_FindItem(hDesktop, 1, FindInfo) > 0 then
showmessage('WORK!!!');
end;
end.