The attached patch should help. It's a bit of a hack and it's mostly untested but copy and paste in MSVC6 seems to work fine.
/Ulrich
On Wed, May 17, 2006 at 07:21:55AM +0800, qingdoa daoo wrote:
--- Ulrich Czekalla ulrich.czekalla@utoronto.ca wrote:
I still don't understand why it would set the clipboard owner to GetDesktopWindow(). A quick hack would be to detect that case and instead set it to NULL.
It looks like in Windows we can set hwnd to any window of any process. So some apps are going to rely on it. Desktop window is just an example.
Either way I think we should first understand what is really happening
Me neither, unfortunately :-(
before we come up with an alternative implementation for this one bug. I have MSVC6. I can install it and investigate. What do I need to do to reproduce the bug?
Basically if you can install MSVC6 you can see the bug. There's an entry in AppDB that might be helpful.
????????????????????????????? http://cn.mail.yahoo.com