从FM发送还原消息到另一个应用程序 [英] Sending a restore message from FM to another Application

查看:47
本文介绍了从FM发送还原消息到另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在查找FM中是否存在窗口方面,我得到了很大的帮助.

I was provided some great help in finding if a window existed in FM.

现在,我需要知道如何还原该窗口(如果确实存在).

Now I need to know how to restore that window , if it does exists.

谢谢

 function WindowExists(const TitleName: string): Boolean;
begin
   Result := Winapi.Windows.FindWindow(nil, PChar(TitleName)) <> 0;
end;

推荐答案

调用 ShowWindow 并传递窗口句柄和 SW_RESTORE 标志.

Call ShowWindow passing the window handle and the SW_RESTORE flag.

这篇关于从FM发送还原消息到另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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