TOpenDialog 的尺寸数据存储在哪里,如何重置?

编程入门 行业动态 更新时间:2024-10-27 22:31:31
本文介绍了TOpenDialog 的尺寸数据存储在哪里,如何重置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

TOpenDialog 有一个选项 ofEnableSizing 允许用户修改打开对话框的对话框大小.这个尺寸数据似乎是为应用程序存储的.如果程序再次启动,对话框会以相同的大小打开.

TOpenDialog has an option ofEnableSizing which allows the user to modify the dialog size of an open dialog. This sizing data seems to be stored for the application. If the program is started again the dialog is opened with the same size.

我的问题是,这些数据存储在哪里.我想知道是否有一种简单的方法来重置这些数据.我在 ofEnableSizing 和相应的 API 标志 OFN_ENABLESIZING 的文档中都没有找到相关信息.

My question is, where this data is stored. I wonder if there exists an easy way to reset this data. I found no information regarding this in the documentation for ofEnableSizing nor for the correspondending API flag OFN_ENABLESIZING.

推荐答案

这存储在 HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU 下.前几个 unicode 十六进制代码点标识您的应用程序 exe 名称.因此,例如,Project1.exe 读作 50 00 72 00 6F 00 6A 00 65 00 63 00 74 00 31 00 2E 00 65 00 78 00 65 00.删除它会重置为默认设置.

This is stored under HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU. The first few unicode hexadecimal codepoints identify you application exe name. So, for example, Project1.exe reads as 50 00 72 00 6F 00 6A 00 65 00 63 00 74 00 31 00 2E 00 65 00 78 00 65 00. Deleting it will reset to default settings.

我认为没有关于此的任何文档.我在 Process Monitor 上找到.

I don't think there's any documentation on this. I found on Process Monitor.

这篇关于TOpenDialog 的尺寸数据存储在哪里,如何重置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 01:08:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1126799.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据存储   尺寸   TOpenDialog

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!