路
路远
Unregistered / Unconfirmed
GUEST, unregistred user!
下面是我的代码,<br>function EnumChildProc (Childhwnd: THandle; Param: Pointer): Boolean; stdcall;<br>var<br>dlghwnd:THandle;<br>path : string;<br>Modal :TWinSortDialog;<br>begin<br> Result := True;<br> Setlength(childwindowtext,100);<br> getwindowtext (Childhwnd,pchar(childwindowtext),100);<br> childwindowtext := pchar(childwindowtext);<br> Reg:=tregistry.create;<br> if AnsiStartsText(Path,childwindowtext)=true then<br> begin<br> modal:=TWinSortDialog.Create (Application);<br> modal.Edit1.Text :=ChildWindowText;<br> try<br> Modal.ShowModal;<br> finally<br> Modal.Free;<br> end;<br> end;<br> Result := False;<br>end;