Re: Saving and restoring windows
- From: Marty <net@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 03 Jul 2008 23:49:21 -0700
Ruediger Ihle wrote:
On Thu, 3 Jul 2008 17:34:02 UTC, Marty <net@xxxxxxxxxxxxxxxxxxx> wrote:
????
Why bother cluttering up the OS2.INI with that junk? Just put it right in the application INI.
Maybe he refers to the Win(Re-)StoreWindowPos APIs. The good thing about
these is, that they will not only save/restore the sizes and positions,
but also presentation parameters like fonts and colors etc. The bad thing
is, that for some strange reason it is not possible to specify a file name.
So data will end up in OS2.INI. However, instead of copying the stuff back
and forth, I would probably not use that API at all if I don't want the
stuff to reside in OS2.INI.
Never found or used that API myself. If you can't select an INI handle, then it seems kinda useless to me.
BTW, one should not forget to use meaningful defaults in case of no INI
entry exists or the values beeing bogus. Users normally don't really like
windows way outside the desktop area or at position (0,0) with a size of (0,0) ;-).
A point well worth mentioning!
--
[Reverse the parts of the e-mail address to reply.]
.
- Follow-Ups:
- Re: Saving and restoring windows
- From: Paul Ratcliffe
- Re: Saving and restoring windows
- References:
- Re: Saving and restoring windows
- From: Herbert Rosenau
- Re: Saving and restoring windows
- From: Marty
- Re: Saving and restoring windows
- From: Ruediger Ihle
- Re: Saving and restoring windows
- Prev by Date: Re: Saving and restoring windows
- Next by Date: Re: Event sequences for emphasis changes
- Previous by thread: Re: Saving and restoring windows
- Next by thread: Re: Saving and restoring windows
- Index(es):
Relevant Pages
|