使用 WinAPI 从 C# 的 Delphi 应用程序访问 TcxGrid 控件 [英] Accessing TcxGrid controls from a Delphi application from c# using WinAPI

查看:24
本文介绍了使用 WinAPI 从 C# 的 Delphi 应用程序访问 TcxGrid 控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要从 c# 中获取 Delphi 应用程序的某些控件的值.我们使用了 SendMessageWM_GETTEXT 来获取文本中的文本

We need to get the value of some controls of a Delphi application from c# . We have used SendMessage and WM_GETTEXT for getting the text in a text

但是我们在 Delphi 应用程序中有 DataGrid (TcxGrid) ......我们无法遍历行并读取一行中的列的值......关于如何做到这一点的任何想法完成

However we have DataGrid (TcxGrid) in the Delphi application... We are unable to iterate through the rows and read the value of columns in a row... Any idea on how this can be done

推荐答案

建议您可以使用 AutoIT 的 C# 控件类.https://www.autoitscript.com/site/autoit/.我成功地使用它来自动化几个用不同语言编写的复杂应用程序.它很容易理解,它隐藏了 SendMessage 和其他血腥细节的所有复杂性并完成了工作.

As a suggestion you can use the C# control class of AutoIT.https://www.autoitscript.com/site/autoit/. I used it successfully to automate several complex applications written in different languages. It is easy to understand and it hides all the complexity of SendMessage and other gory details and gets the job done.

这篇关于使用 WinAPI 从 C# 的 Delphi 应用程序访问 TcxGrid 控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆