Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Deanna Earley Newsgroups: comp.lang.basic.visual.misc Subject: Re: Common Dialog Function Date: Wed, 14 Mar 2012 10:03:37 +0000 Organization: Aioe.org NNTP Server Lines: 39 Message-ID: References: NNTP-Posting-Host: rjApkXnSOjrT83QpZ8fKqg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.basic.visual.misc:947 On 13/03/2012 20:31, Mike Williams wrote: > "Bob Butler" wrote in message > news:jjo2ss$brr$1@dont-email.me... >> >> I have the same issue with 1 app on a Vista box. When it opens >> the dialog box it is maximized but double-clicking the dialog box >> title bar puts it back to normal. Other apps using the same code >> do not exhibit the problem and the same exe doesn't do it on >> other systems. I've searched the registry and everywhere I can >> think of with no luck. I've learned to live with it. > > Hmm . . . that's quite interesting. I've never actually noticed it > before but it seems that Windows remembers the most recent window state > (and the size) of file dialogs on a program by program basis and that > the memory persists between restarts, so it must be in the registry > somewehere. I haven't looked for it yet but I'm sure it must be there > somewhere. Perhaps the entry has become corrupt for the specific program > you are talking about? I quick process explorer trace shows the data to be stored as a fairly simple binary blob under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU When I close the dialog, it enumerates all entries until it find the value matching the exe name (not the full path) then updates it. It also updates various other locations with the folder view state (icons size, sort, etc) and the nav pane expanded state but they may be more generic shell settings. -- Deanna Earley (dee.earley@icode.co.uk) i-Catcher Development Team http://www.icode.co.uk/icatcher/ iCode Systems (Replies direct to my email address will be ignored. Please reply to the group.)