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@winehq.org ReportedBy: tobi@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.