From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: raise-frame sends lowers another Windows app's frame Date: Tue, 08 Aug 2006 09:35:00 +0100 Message-ID: <44D84CB4.7010303@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155026181 25683 80.91.229.2 (8 Aug 2006 08:36:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Aug 2006 08:36:21 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 08 10:36:19 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GAN4C-0000a9-Rh for ged-emacs-devel@m.gmane.org; Tue, 08 Aug 2006 10:36:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAN4C-0001El-D9 for ged-emacs-devel@m.gmane.org; Tue, 08 Aug 2006 04:36:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GAN3f-00013V-VA for emacs-devel@gnu.org; Tue, 08 Aug 2006 04:35:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GAN3e-00011o-0N for emacs-devel@gnu.org; Tue, 08 Aug 2006 04:35:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAN3d-00011h-R3 for emacs-devel@gnu.org; Tue, 08 Aug 2006 04:35:25 -0400 Original-Received: from [213.86.207.50] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GAN83-0003lU-Tj for emacs-devel@gnu.org; Tue, 08 Aug 2006 04:40:00 -0400 Original-Received: from [192.168.111.61] (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id NMA8FFKC; Tue, 8 Aug 2006 09:26:38 +0100 Original-Received: from 192.168.111.61 ([192.168.111.61] helo=[192.168.111.61]) by ASSP-nospam; 8 Aug 2006 09:26:38 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 Original-To: Drew Adams In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58171 Archived-At: 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); }