> -----Original Message-----
> From: Lennart Borgman (gmail) [mailto:[EMAIL PROTECTED]
> Sent: Sunday, May 06, 2007 11:13 PM
> To: Eli Zaretskii
> Cc: Eivind Midtgård; [email protected]
> Subject: Re: Maximization doesn't work properly on Windows
> Xp, Emacs 22.0.92.1
>
> Eli Zaretskii wrote:
> >> Date: Sun, 06 May 2007 22:40:52 +0200
> >> From: "Lennart Borgman (gmail)" <[EMAIL PROTECTED]>
> >> CC: [EMAIL PROTECTED], [email protected]
> >>
> >> I believe Windows is beeing fooled by the way Emacs tries
> to make a
> >> semi-maximized window.
> >
> > How can Emacs fool Windows? All we do is create a window; if that
> > window's size is too large, or it's positioned over the
> task bar, it's
> > our bug.
>
> Ah, you are maybe right. It was quite a long time ago since I
> started using the patch so I do not remember exactly any
> more. I just remember that I was rather perplexed by the
> behaviour I saw. However Emacs somehow tells Windows that the
> window is maximized and that might create some problems since
> it actually is not maximized.
The Win32 documentation for ShowWindow says that SW_SHOWNORMAL is to be used
when an app displays the window for the first time. SW_RESTORE is to be used
when an app restores a minimized window. Since SW_RESTORE is #defined as 9, and
SW_SHOWNORMAL is 1, I guess that Windows distinguishes between the two in some
subtle way.
MFC uses this for its frame windows:
if (!IsWindowVisible())
nCmdShow = SW_SHOWNORMAL;
else if (IsIconic())
nCmdShow = SW_RESTORE;
Regards,
Eivind
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug