Re: winex11.drv: Post a WM_SYSCOMMAND SC_CLOSE when the Window Manager asks to close a window
16 Jun
2010
16 Jun
'10
2:18 a.m.
On 06/15/2010 05:36 AM, Paul Chitescu wrote:
Changelog: winex11.drv: Post a WM_SYSCOMMAND SC_CLOSE when the Window Manager asks to close a window
+ GetCursorPos( &pt ); + PostMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, MAKELPARAM( pt.x, pt.y ) ); You can't do that. Cursor can be anywhere, even outside Wine when WM decides to remove Wine's window. According to MSDN (which means it requires validation) you can pass either -1 or 0 for lparam here.
Otherwise I think WM_SYSCOMMAN should be the correct behavior. Vitaliy.
5662
Age (days ago)
5662
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vitaliy Margolen