[Bug 31677] New: a child window not opened properly

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Sep 11 04:09:43 CDT 2012


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

             Bug #: 31677
           Summary: a child window not opened properly
           Product: Wine
           Version: 1.5.12
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: tramp at sibmail.com
    Classification: Unclassified


This code is not working properly:

void PreSubclassWindow()
{

LONG Styles = GetWindowLong(m_hWnd, GWL_STYLE);
LONG ExStyles = GetWindowLong(m_hWnd, GWL_EXSTYLE);

if (Styles == 0 || ExStyles == 0)
return;

Styles |= WS_CHILD;
Styles &= ~WS_OVERLAPPED;
Styles &= ~WS_CAPTION;
Styles &= ~WS_BORDER;

ExStyles &= ~WS_EX_CLIENTEDGE;
ExStyles &= ~WS_EX_DLGMODALFRAME;
ExStyles &= ~WS_EX_WINDOWEDGE;

SetWindowLong(m_hWnd, GWL_STYLE, Styles);
SetWindowLong(m_hWnd, GWL_EXSTYLE, ExStyles);

}

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