emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: raise-frame sends lowers another Windows app's frame


From: Jason Rumney
Subject: Re: raise-frame sends lowers another Windows app's frame
Date: Tue, 08 Aug 2006 09:35:00 +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

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);
        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]