# How do I get a window to remember it's size(Win98)?

**URL:** <https://boards.straightdope.com/t/how-do-i-get-a-window-to-remember-its-size-win98/119817>\
**Category:** Factual Questions\
**Created:** [July 19, 2002, 3:21pm UTC](https://boards.straightdope.com/t/how-do-i-get-a-window-to-remember-its-size-win98/119817 "2002-07-19T15:21:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahaloth](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mahaloth/32/1079_2.png) [@Mahaloth](https://boards.straightdope.com/u/Mahaloth)\
**Post date:** [July 19, 2002, 3:21pm UTC](https://boards.straightdope.com/t/how-do-i-get-a-window-to-remember-its-size-win98/119817/1 "2002-07-19T15:21:03Z")

</div>

Okay, I know this is basic, so don’t yell. 🙂

Anyway, I just quite AOl and am using explorer now to browse the web. When I open a link in a new window, it started to open it in a smaller size(the middle size of the three). I have to manually press maximize to increase it. This started about 2 days ago.

How can I get it to always open a new window in maximized size, which it was doing until 2 days ago. Thanks.

---

<div class="post-metadata">

**Author:** ![Mahaloth](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mahaloth/32/1079_2.png) [@Mahaloth](https://boards.straightdope.com/u/Mahaloth)\
**Post date:** [July 20, 2002, 12:52am UTC](https://boards.straightdope.com/t/how-do-i-get-a-window-to-remember-its-size-win98/119817/2 "2002-07-20T00:52:38Z")

</div>

[bump]

Gosh, I think this is the second time in 5 years of being on this board that I’ve bumped my own thread that had no posts.

Any help would be great! Thanks again.

---

<div class="post-metadata">

**Author:** ![UrbanChic](https://avatars.discourse-cdn.com/v4/letter/u/9dc877/32.png) [@UrbanChic](https://boards.straightdope.com/u/UrbanChic)\
**Post date:** [July 20, 2002, 1:13am UTC](https://boards.straightdope.com/t/how-do-i-get-a-window-to-remember-its-size-win98/119817/3 "2002-07-20T01:13:59Z")

</div>

Mahaloth, take a look at [this article](http://support.microsoft.com/default.aspx?scid=kb;en-us;Q167099).

You’ve probably tried that, though. The way I fix this problem is deleting HKEY\_CURRENT\_USER\Software\Microsoft\Internet Explorer\Main\Window\_Placement.

**Back up your registry editor before doing _anything_ there!**

---

<div class="post-metadata">

**Author:** ![astro](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@astro](https://boards.straightdope.com/u/astro)\
**Post date:** [July 20, 2002, 1:32am UTC](https://boards.straightdope.com/t/how-do-i-get-a-window-to-remember-its-size-win98/119817/4 "2002-07-20T01:32:16Z")

</div>

I don’t think you need the registry for this.

Just maximize the window by dragging it by the corners and top to the maximum screen filling, correctly postioned size. Then go to [File] at the top left and then [Close] (not the box at the top right. The screen will open to the right size the next time.

---

<div class="post-metadata">

**Author:** ![UrbanChic](https://avatars.discourse-cdn.com/v4/letter/u/9dc877/32.png) [@UrbanChic](https://boards.straightdope.com/u/UrbanChic)\
**Post date:** [July 20, 2002, 1:42am UTC](https://boards.straightdope.com/t/how-do-i-get-a-window-to-remember-its-size-win98/119817/5 "2002-07-20T01:42:25Z")

</div>

That’s what’s suggested in the link I provided.

---

<div class="post-metadata">

**Author:** ![tracer](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tracer/32/20578_2.png) [@tracer](https://boards.straightdope.com/u/tracer)\
**Post date:** [July 20, 2002, 2:39am UTC](https://boards.straightdope.com/t/how-do-i-get-a-window-to-remember-its-size-win98/119817/6 "2002-07-20T02:39:28Z")

</div>

Or you could just rewrite the software so that it saves its position and size to the Registry in response to a WM\_CLOSE message, and then reads it back in when launched and uses these figures as arguments to CreateWindow(). 😉
