[Bug 29180] New: WS_CHILD dialog might want WM_CAPTION

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Nov 26 15:05:18 CST 2011


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

             Bug #: 29180
           Summary: WS_CHILD dialog might want WM_CAPTION
           Product: Wine
           Version: 1.3.33
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: user32
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: toni.spets at iki.fi
    Classification: Unclassified


Created attachment 37645
  --> http://bugs.winehq.org/attachment.cgi?id=37645
Missing title bar in editable dialog

A child dialog (WS_CHILD) window can request WM_CAPTION and WS_SYSMENU.

The very obscure case of this is a free resource editor like ResEdit. With
ResEdit the WM_CAPTION style is ignored when the window is first created
leaving the editable window without a title bar, this is incorrect and also
causes height calculation problems when the program expect the title bar to
exist.

The incorrect rendering is shown in the attachment. Toggling some style options
which triggers SetWindowLong() will make the title bar appear and everything
continue working correctly.

I'm not 100% sure about WM_SYSMENU showing up on Windows, I'd expect it to be
shown if requested altough not working as the dialog is in disabled state to
prevent using them.

Patch attached to show the incorrect handling of WM_CAPTION. Fixing this should
be trivial by loosening the restrictions posed on WM_CHILD windows.

-- 
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