打印本文 打印本文 关闭窗口 关闭窗口
获取其他程序中TreeView的内容
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1670  更新时间:2009/4/23 18:35:12  文章录入:mintao  责任编辑:mintao
MEM_RELEASE); CloseHandle(vProcess); mStrings.EndUpdate; end; Result := True; end; { GetTreeViewText }

//Example
procedure TForm1.FormCreate(Sender: TObject);
begin
  RegisterHotKey(Handle, 1, MOD_WIN, VK_F2);
end;

procedure TForm1.FormDestroy(Sender: TObject);
begin
  UnRegisterHotKey(Handle, 1);
end;

procedure TForm1.WMHOTKEY(var Msg: TWMHOTKEY);
begin
  case Msg.HotKey of
    1:
      GetTreeViewText(
        WindowFromPoint(Point(Mouse.CursorPos.X, Mouse.CursorPos.Y)),
        MemoText.Lines);
  end;
end;

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口