"LouB" <Lou@invalid.invalid> wrote in message
news:4B86C683.8020200@invalid.invalid...
> Andrew wrote:
>>
>>
>> "LouB" <Lou@invalid.invalid> wrote in message
>> news:4B86B7D2.1010404@invalid.invalid...
>>> LouB wrote:
>>>> Chrome is always starting in a normal window BUT until now it started
>>>> maximized, which is what I want.
>>>> I had NOT changed anything.
>>>> I have now tried changinging startup to normal and back to maximized
>>>> but no joy.
>>>>
>>>> What the hell is going on??
>>>>
>>>> Lou
>>>
>>> Problem went away the same way it came - by magic)
>>
>> All you had to do was close the window in the same state you want it to
>> open.
>> For example if you have multiple chrome windows open and the last one you
>> close is not maximized, it will remember the state of that window and
>> open it again in the same sized frame.
>> Just reopen the app, maximize it and close it again. Then you are good.
>>
> Well I did that a mere 7 times and it did not work.
What app are you using?
Here's the info on the api from MSDN.
Remarks
This sample illustrates how to save the size, location, and state of a
Window so the Window opens in the same position it was closed. Furthermore,
this sample is multi-monitor aware, which means that if the monitor on which
the Window was closed is disconnected, the Window is shown on a connected
monitor instead.
This requires using the following Win32 APIs (from User32.dll):
WINDOWPLACEMENT: To store window size, location, and state (see
WINDOWPLACEMENT Structure).
GetWindowPlacement: To retrieve the current WINDOWPLACEMENT data for the
window before it closes (see GetWindowPlacement Function).
SetWindowPlacement: To restore the WINDOWPLACEMENT data when the window
opens (see SetWindowPlacement Function).
The WINDOWPLACEMENT structure is physically stored on disk using the
Microsoft .NET Framework support for strongly-typed application settings
(see Application Settings Overview).
--
Andrew