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@winehq.org ReportedBy: tramp@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);
}