From: Jason Rumney <jasonr@gnu.org>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: raise-frame sends lowers another Windows app's frame
Date: Tue, 08 Aug 2006 09:35:00 +0100 [thread overview]
Message-ID: <44D84CB4.7010303@gnu.org> (raw)
In-Reply-To: <MEEKKIABFKKDFJMPIOEBAEONDDAA.drew.adams@oracle.com>
Drew Adams wrote:
> HDWP handle = BeginDeferWindowPos (2);
> if (handle)
> {
> DeferWindowPos (handle,
> FRAME_W32_WINDOW (f),
> HWND_TOP,
> 0, 0, 0, 0,
> SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
>
> DeferWindowPos (handle,
> GetForegroundWindow (),
> FRAME_W32_WINDOW (f),
> 0, 0, 0, 0,
> SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
>
> EndDeferWindowPos (handle);
> }
>
Does it make a difference if you replace the above code with:
HDWP handle = BeginDeferWindowPos (2);
if (handle)
{
handle = DeferWindowPos (handle,
FRAME_W32_WINDOW (f),
HWND_TOP,
0, 0, 0, 0,
SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
}
if (handle)
{
handle = DeferWindowPos (handle,
GetForegroundWindow (),
FRAME_W32_WINDOW (f),
0, 0, 0, 0,
SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
}
if (handle)
{
EndDeferWindowPos (handle);
}
next prev parent reply other threads:[~2006-08-08 8:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-08 0:52 raise-frame sends lowers another Windows app's frame Drew Adams
2006-08-08 8:35 ` Jason Rumney [this message]
2006-08-08 14:00 ` Drew Adams
2006-08-12 12:20 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44D84CB4.7010303@gnu.org \
--to=jasonr@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.