[Bug 34315] New: HWND_NOTOPMOST makes window disappear behind other windows

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Aug 21 10:17:16 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=34315

             Bug #: 34315
           Summary: HWND_NOTOPMOST makes window disappear behind other
                    windows
           Product: Wine
           Version: unspecified
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: lopeonline at gmail.com
    Classification: Unclassified


Created attachment 45681
  --> http://bugs.winehq.org/attachment.cgi?id=45681
VB6 Test case (source code) AND exe

Many of my utilities run minimized and are supposed to popup when they are
ready for interaction.

To make them popup I use this code:

  Me.WindowState = 0
  BringWindowOnTop Me.Hwnd
  FlashWindow Me.Hwnd, True
  Me.Caption = "Popped up"

Public Sub BringWindowOnTop(Hwnd As Long)
    SetWindowPos Hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
    SetWindowPos Hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
    SetWindowPos Hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub

The above code works on XP and W7.

On Wine as soon as I call HWND_NOTOPMOST the window falls behind other windows,
unless I give the window focus before that happens. (that is not part of the
submitted test case)

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list