View Full Version : keeping a window maximized or minimized
Ed Lessin
December 5th 03, 12:19 AM
On Win 98, when opening a window, it would open the same
way it was last used, ie, if mazimized, it would then
open maximized agains. On my Win XP, eg, Solitaire always
opens maximized although I like to play it in a smaller
window. Other windows open minimized and I then have to
maximize them. How do I set things so when a window
opens, it will open the same way it last closed?
David Candy
December 5th 03, 12:19 AM
It's entirely up to the program. Solitaire is a program that doesn't =
save it's windows settings and relies on windows default positioning =
(which will NEVER maximise a window).=20
IE stores it's windows settings here
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
Window_Placement=3D
and appears to be a WINDOWPLACEMENT structure.
typedef struct _WINDOWPLACEMENT {=20
UINT length;=20
UINT flags;=20
UINT showCmd;=20
POINT ptMinPosition;=20
POINT ptMaxPosition;=20
RECT rcNormalPosition;=20
} WINDOWPLACEMENT;=20
Now I have seen IE startup minimised (it shouldn't). In experiments it =
updates if maximised or normal but if minimised it updates as normal. =
The ShowCmd (the third group of 4 bytes) is 1 for normal (eg 01 00 00 =
00) and 3 for maximised (03 00 00 00). Note Intel processors store =
numbers in reverse so the above are read by humans as 00000001 and =
00000003.
Possibly you have set the shortcut to always start the program =
maximised. Right click the shortcut you use to start solitaire and look =
on the Program tab for the value of the Run drop down listbox.
Explorer saves the size on a folder by folder basis. The first folder =
opened is the size that is used. In it's settings it has a showcmd =
value. While you can manually edit it to start the next explorer window =
minimised explorer then also fixes it when you leave the folder to =
either normal or maximised. If minimised it is saved as normal. It's far =
too hard to explain how to find explorers settings (for a particular =
folder) but they are stored here in gobblygook.
HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell NoRoam
--=20
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Ed Lessin" > wrote in message =
...
> On Win 98, when opening a window, it would open the same=20
> way it was last used, ie, if mazimized, it would then=20
> open maximized agains. On my Win XP, eg, Solitaire always=20
> opens maximized although I like to play it in a smaller=20
> window. Other windows open minimized and I then have to=20
> maximize them. How do I set things so when a window=20
> opens, it will open the same way it last closed?
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.