Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the sizing data of TOpenDialog stored and how can this be reset?

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.

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.

like image 483
Alois Heimer Avatar asked Sep 01 '15 07:09

Alois Heimer


1 Answers

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.

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

like image 108
GabrielF Avatar answered Oct 14 '22 07:10

GabrielF