[Wine] Re: How to discover within my application if executed in Wine?
wineforum-user at winehq.org
Fri Apr 17 12:20:30 CDT 2009
> I use ShowWindow from user32: ShowWindow(Application.Handle, SW_HIDE);
Should work, however Wine has problems with Delphi apps. Delphi creates 2 windows for each "form". And Wine doesn't properly handle them both.
> As for Clipboard: I use SetClipboardViewer and ChangeClipboardChain from user32.
> The WM_DRAWCLIPBOARD message is sent twice to the window after I use SetClipboardViewer. It's not suppose to do that - I don't think it's from Delphi or my code... In Windows it does not send it.
Could be bug in Wine. You can try to debug this or at least make some simple test for this. With that you can open a bug report in bugzilla.
> Also it's not sent after I change Clipboard from KWrite - kind of expected (different Clipboards)...
I don't see any notifications implemented (see dlls/winex11.drv/clipboard.c).
More information about the wine-users