http://bugs.winehq.org/show_bug.cgi?id=31983
--- Comment #4 from TOM l12436@yahoo.com.tw 2012-11-10 19:34:34 CST --- provide some information that i trace by ollydbg
CreateWindowExW or CreateWindowExA
CPU Stack Address Value Comments 0038FAB8 [00412F9C ; /RETURN from user32.CreateWindowExW to GMCore.00412F9C 0038FABC 00000080 ; |ExtStyle = WS_EX_TOOLWINDOW 0038FAC0 00578758 ; |ClassName = "TApplication" 0038FAC4 0148282C ; |WindowName = "Gmcore" 0038FAC8 84CA0000 ; |Style = WS_POPUP|WS_MINIMIZEBOX|WS_CAPTION|WS_SYSMENU|WS_CLIPSIBLINGS 0038FACC 00000280 ; |X = 640. 0038FAD0 00000200 ; |Y = 512. 0038FAD4 00000000 ; |Width = 0 0038FAD8 00000000 ; |Height = 0 0038FADC 00000000 ; |hParent = NULL 0038FAE0 00000000 ; |hMenu = NULL 0038FAE4 00400000 ; |hInst = 00400000 0038FAE8 00000000 ; \lParam = NULL
this is the ollydbg information that cause the error the windows focus. the main problem is the TApplication has no window,. but it use the normal window create. and cause wine recognize to the normal window.
i don't know if it help you.