http://bugs.winehq.org/show_bug.cgi?id=14491
Summary: window focus error on applications written by Delphi Product: Wine Version: unspecified Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comdlg32 AssignedTo: wine-bugs@winehq.org ReportedBy: naclx@vip.sina.com
When Delphi controls call GetOpenFileName() in comdlg32.dll, the member "hwndOwner" in the paramter "ofn" is specified to point to the handle of the window on the toolbar, not the one of the main window as usual. Therefore, there will be two abnormal phenomena: 1. If choose the "Allow the window manager to control the windows" option in winecfg, foreground windows in some applications written by Delphi will be hidden behind the background ones. 2. If not choose the "Allow the window manager to control the windows" option, no application windows will be shown on the toolbar.