41 Commits

Author SHA1 Message Date
Sebastian Lackner
4e63a5bf8f user32: Add missing call to GlobalUnlock in render_synthesized_enhmetafile.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:08:55 +09:00
Sebastian Lackner
5eb8217f6d user32: Add missing calls to GlobalUnlock in render_synthesized_dib.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:08:45 +09:00
Sebastian Lackner
a78fd8a07e user32: Only call GlobalUnlock when GlobalLock was successful.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:08:00 +09:00
Alexandre Julliard
9a652e211c user32: Synthesize bitmap clipboard formats on the user32 side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 11:36:24 +09:00
Alexandre Julliard
1993898459 user32: Synthesize metafile clipboard formats on the user32 side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 10:51:21 +09:00
Alexandre Julliard
8865f4a4ec user32: Synthesize text clipboard formats on the user32 side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 00:34:24 +09:00
Alexandre Julliard
fa06ecbfce user32: Implement GetUpdatedClipboardFormats.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 15:35:49 +09:00
Alexandre Julliard
bddab0e7f8 server: Add a release_clipboard request, and notify the owner and viewer on release.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:02:04 +09:00
Alexandre Julliard
c6f12bd9cc server: Notify all listeners when the contents of the clipboard have changed.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 16:33:04 +09:00
Alexandre Julliard
35537b1d45 server: Implement Add/RemoveClipboardFormatListener.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 23:54:40 +09:00
Alexandre Julliard
19d16a7cb1 server: Add some validation of clipboard window handles.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 21:31:50 +09:00
Alexandre Julliard
7888382e0a user32: Notify the clipboard viewer on close even if we are not the owner.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-25 22:09:08 +09:00
Alexandre Julliard
d9df977006 user32: Don't disallow delayed rendering even when not the clipboard owner.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 17:57:50 +09:00
Alexandre Julliard
42c221db6c user32: Don't allow SetClipboardData if the clipboard is not open.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 17:35:18 +09:00
Alexandre Julliard
79d2e0a9be server: Add a request to return clipboard information.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 16:29:00 +09:00
Alexandre Julliard
67ee1d3fd8 user32: Get rid of the CLIPBOARDINFO structure.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 23:05:21 +09:00
Alexandre Julliard
98b24dcb50 server: Add a separate request to set the clipboard viewer.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 23:05:20 +09:00
Alexandre Julliard
7258793169 server: Add separate requests for opening and closing the clipboard.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 16:20:53 +09:00
Vincent Povirk
b68e03f9c9 user32: Don't regard the clipboard as changed if we don't own it.
I ran into a situation where user32 will call EndClipboardUpdate even though
the clipboard hasn't changed. It went something like this:
* Program A acquires the clipboard and adds some delay-rendered data.
* Program B requests data from the clipboard, causing program A to receive
  WM_RENDERFORMAT.
* Program A calls SetClipboardData to fulfill the request, setting
  bCBHasChanged to TRUE.
* Program C acquires the clipboard.
* Program A opens the clipboard to enumerate the formats. When it closes the
  clipboard, EndClipboardUpdate is called.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 00:53:52 +09:00
Alexandre Julliard
3d7aa246d5 server: Add a request to empty the clipboard. 2015-06-09 22:09:56 +09:00
Alexandre Julliard
0aa1af219f user32: Disallow format 0 in SetClipboardData. 2015-06-05 18:36:32 +09:00
Alexandre Julliard
25d9fc3ecc server: Check for the current owner window on the server side for releases. 2015-06-03 19:29:49 +09:00
Alexandre Julliard
070a82e743 user32: Merge the AcquireClipboard and EmptyClipboard driver entry points. 2015-06-03 18:46:53 +09:00
Alexandre Julliard
b7c340de73 user32: Get rid of the unused parameter in the EmptyClipboard driver entry point. 2015-06-03 18:46:53 +09:00
Alexandre Julliard
7ab517c3c6 user32: Remove some unnecessary clipboard helper functions. 2015-05-27 17:42:59 +09:00
Nikolay Sivov
961d26418a user32: Added AddClipboardFormatListener/RemoveClipboardFormatListener stubs. 2014-03-19 11:33:17 +01:00
Frédéric Delanoy
0f2bed51bd Assorted spelling fixes. 2014-02-10 15:47:29 +01:00
Piotr Caban
dd573925e5 user32: Use SendNotifyMessage to send WM_DRAWCLIPBOARD. 2013-05-15 19:57:34 +02:00
Alexandre Julliard
7879b8e349 user32: Get rid of the RegisterClipboardFormat driver entry point. 2011-03-07 17:06:50 +01:00
Alexandre Julliard
383d8ac105 user32: Remove GetClipboardFormatName from the user driver interface. 2011-03-04 16:25:52 +01:00
Alexander Scott-Johns
6c6b15f2d4 user32: Partially fix clipboard viewer infinite recursion bug. 2011-01-31 14:04:54 +01:00
Alexandre Julliard
83b66549da user32: Get rid of 16-bit handles in the driver clipboard interface. 2009-12-23 14:27:31 +01:00
Alexandre Julliard
3313c40b7c user32: Reimplement 16-bit clipboard functions on top of the 32-bit ones. 2009-12-23 14:27:31 +01:00
Alexander Scott-Johns
6ad9c44389 user32: Add missing doc comment. 2009-10-07 15:57:14 +02:00
Alexander Scott-Johns
9c9ebe04c5 user32: Send a WM_DRAWCLIPBOARD message to the new viewer when SetClipboardViewer is called. 2009-09-23 16:09:05 +02:00
Alexander Scott-Johns
64569c66e4 user32: When sending the WM_DRAWCLIPBOARD message, pass the clipboard owner in wParam. 2009-09-23 16:08:59 +02:00
Alexandre Julliard
7fdadbb377 server: Add functions for conversions between server user handles and pointer-style handles. 2008-12-08 16:58:20 +01:00
Alexandre Julliard
61bace5ba9 Revert "user32: Moved some 16-bit functions."
This partially reverts commit 6e9fea22f82fe60624e1081d74ad990a5c428eed.
16-bit and 32-bit clipboard handles aren't interchangeable.
2007-12-17 11:56:05 +01:00
Rémi Assailly
6e9fea22f8 user32: Moved some 16-bit functions. 2007-10-03 11:02:28 +02:00
Steven Edwards
a725826ada user32: Remove some no longer needed wine 16bit headers. 2007-08-29 12:31:34 +02:00
Alexandre Julliard
b8a2e3b8a4 user32: Renamed the user/ directory to user32. 2006-11-16 14:49:25 +01:00