[Bug 4396] New: floating MFC-ToolBars get managed & and can't be re-docked
http://bugs.winehq.org/show_bug.cgi?id=4396 Summary: floating MFC-ToolBars get managed & and can't be re- docked Product: Wine Version: 0.9.6. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs(a)winehq.org ReportedBy: tobi(a)die-loews.de Hi, I'm running an MDI-app build with MFC in managed mode. When I float a toolbar, the MiniFrameWnd gets managed, looks a bit ugly and can't be re-docked in the apps mainframe. (This happens with the app both built in MS VS 6 and VS.net.) I think managing of MFC-Toolbars can be prevented by swapping the lines /* windows with caption are managed */ if ((style & WS_CAPTION) == WS_CAPTION) return TRUE; /* tool windows are not managed */ if (ex_style & WS_EX_TOOLWINDOW) return FALSE; in windows.c, line 78-81 to /* tool windows are not managed */ if (ex_style & WS_EX_TOOLWINDOW) return FALSE; /* windows with caption are managed */ if ((style & WS_CAPTION) == WS_CAPTION) return TRUE; because MFC sets the exstyle WS_EX_TOOLWINDOW AND the style WS_CAPTION for MiniFrameWnds. I don't no if any other app relys on the actual sequence in is_window_managed. thanks, Tobias PS: Everything works fine with e.g. Excel 2000, as Excel seems to draw the caption of floating toolbars by itself and does not use the WS_CAPTION style. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
participants (1)
-
Wine Bugs