如何在文件中保存窗口状态并从此保存文件恢复 [英] How I save window state in file and restore from this save file

查看:129
本文介绍了如何在文件中保存窗口状态并从此保存文件恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在VMware等文件中保存窗口状态和恢复窗口



我尝试过:



i我在c ++中尝试但是我只做了进程列表。

i want to save window state in file like VMware and resume window

What I have tried:

i am trying in c++ but i have only done to get process list .

推荐答案

我写了这篇文章 [ ^ ]关于它。

基本上,你定期存储在。配置文件或在Registry中的任何此类信息(例如窗口状态)。然后,当您的应用程序启动时,您将阅读此信息。
I wrote this article[^] about it.
Basically, you periodically store in a .config file or in the Registry any such information (such as the window state). Then when your application starts, you read this information.


查看保存并恢复您的表单大小和位置 [ ^ ]。它适用于.NET,但应该让您对需要遵循的过程有一个合理的了解。
Take a look at Save and restore your form size and location[^] by the great @OriginalGriff. It is for .NET but should give you a reasonable idea of the process you need to follow.


您必须将所需的值保存在文件或注册表中,并在启动时恢复它。它首先是窗口的大小和位置,我想它显示的数据。



也许我的文章关于 Windows的重新定位向您展示了一些见解。
You must save the needed values in a file or registry and restore it on launch. It is firstly the windows size and position and I guess its data which is displayed.

Maybe my article about Repositioning of Windows shows you some insights.


这篇关于如何在文件中保存窗口状态并从此保存文件恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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