的尺寸数据存储在哪里

的尺寸数据存储在哪里

本文介绍了TOpenDialog 的尺寸数据存储在哪里,如何重置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 的尺寸数据存储在哪里,如何重置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 05:31