Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #948

Re: Common Dialog Function

From "Mike Williams" <Mike@WhiskyAndCoke.com>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Common Dialog Function
Date 2012-03-14 11:07 +0000
Organization A noiseless patient Spider
Message-ID <jjpu4u$hk9$1@dont-email.me> (permalink)
References <ZFJ7r.7894$_N4.2103@newsfe07.ams2> <jjo0rh$uh2$1@dont-email.me> <jjo2ss$brr$1@dont-email.me> <jjoaqo$t2n$1@dont-email.me> <jjpqd9$i8e$1@speranza.aioe.org>

Show all headers | View raw


"Deanna Earley" <dee.earley@icode.co.uk> wrote in message 
news:jjpqd9$i8e$1@speranza.aioe.org...
> 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.

Now that's very interesting. I did know about the general behaviour, for 
example the exe name (not full path) thing, because a couple of simple tests 
confirmed it empirically, but I did not know where the information was 
stored. I was certain it would be in the registry somewhere but I had not 
actually looked for it. Thanks for that piece of information. It might be 
interesting to now look at how the size and window state information is 
encoded, which at least at first sight seems to be fairly straightforward. 
Clearly the exe name is contained very simply in bytes 0000 to 0207 (the 
name followed by a load of trailing zeros) and the data itself is contained 
in bytes 0208 to 024F. The dialog window state (maximized or normal) is 
represented by the last four bytes (0000 for normalized and FFFF for 
maximized), a fact which can also be confirmed empirically, and it looks as 
though the normalized size should be easy to figure out as well. There is 
space for lots of other stuff of course, but I haven't looked into that yet. 
Thanks for the info regarding the location. This should help Bob Butler to 
pin down his own specific problem.

Mike

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Common Dialog Function "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-03-13 15:26 +0000
  Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-13 16:51 +0000
  Re: Common Dialog Function Deanna Earley <dee.earley@icode.co.uk> - 2012-03-13 16:58 +0000
    Re: Common Dialog Function Deanna Earley <dee.earley@icode.co.uk> - 2012-03-13 17:38 +0000
  Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-13 17:41 +0000
    Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-13 11:13 -0700
      Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-13 20:31 +0000
        Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-13 15:54 -0700
        Re: Common Dialog Function ralph <nt_consulting64@yahoo.net> - 2012-03-13 19:01 -0500
        Re: Common Dialog Function Deanna Earley <dee.earley@icode.co.uk> - 2012-03-14 10:03 +0000
          Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 11:07 +0000
            Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 11:28 +0000
          Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-14 05:51 -0700
            Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 13:46 +0000
              Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-14 07:23 -0700
                Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 15:10 +0000
                Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-14 11:20 -0700
                Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 18:46 +0000
          Re: Common Dialog Function ralph <nt_consulting64@yahoo.net> - 2012-03-14 08:22 -0500
  Re: Common Dialog Function BeeJ <nospam@spamnot.com> - 2012-03-13 11:24 -0800
  Re: Common Dialog Function "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-03-13 21:53 +0000

csiph-web