【发布时间】:2018-06-22 08:49:38
【问题描述】:
我想将我的应用程序的窗口保持在另一个程序的窗口前面。 我的应用程序是使用 WPF 创建的,我将所有者设置为另一个窗口的 hwnd,如下所示:
// this: my wpf window
WindowInteropHelper helper = new WindowInteropHelper(this);
//The hwnd is handle of window that other program I want to follow
helper.Owner = new IntPtr(hwnd);
一切都很完美,但我无法在窗口(hwnd 窗口)的 RichEditComponent 中用鼠标选择文本。
有办法解决这个问题吗?
不知道其他程序是用哪种语言编写的,可能是c++。使用 windows api "FindWindowEx" 获得的其他程序窗口的句柄。
【问题讨论】:
-
您的屏幕截图不是很有用。似乎选择了一些文本?