[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1
From: |
Eivind Midtgård |
Subject: |
RE: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1 |
Date: |
Sun, 6 May 2007 23:48:03 +0200 |
> -----Original Message-----
> From: Lennart Borgman (gmail) [mailto:address@hidden
> Sent: Sunday, May 06, 2007 11:13 PM
> To: Eli Zaretskii
> Cc: Eivind Midtgård; address@hidden
> 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)" <address@hidden>
> >> CC: address@hidden, address@hidden
> >>
> >> 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
- Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Eivind Midtgård, 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Lennart Borgman (gmail), 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Eli Zaretskii, 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Lennart Borgman (gmail), 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Eli Zaretskii, 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Lennart Borgman (gmail), 2007/05/06
- RE: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1,
Eivind Midtgård <=
- RE: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Eivind Midtgård, 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Ralf Angeli, 2007/05/07
Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Jason Rumney, 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Lennart Borgman (gmail), 2007/05/06
- RE: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Eivind Midtgård, 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Jason Rumney, 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Lennart Borgman (gmail), 2007/05/06
- RE: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Eivind Midtgård, 2007/05/06
- Re: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Eli Zaretskii, 2007/05/06
- RE: Maximization doesn't work properly on Windows Xp, Emacs 22.0.92.1, Eivind Midtgård, 2007/05/07