user32: When sending the WM_DRAWCLIPBOARD message, pass the clipboard owner in wParam.
This commit is contained in:
parent
4807fd99a7
commit
64569c66e4
|
@ -285,7 +285,7 @@ BOOL WINAPI CloseClipboard(void)
|
||||||
USER_Driver->pEndClipboardUpdate();
|
USER_Driver->pEndClipboardUpdate();
|
||||||
|
|
||||||
if (hWndViewer)
|
if (hWndViewer)
|
||||||
SendMessageW(hWndViewer, WM_DRAWCLIPBOARD, 0, 0);
|
SendMessageW(hWndViewer, WM_DRAWCLIPBOARD, (WPARAM) GetClipboardOwner(), 0);
|
||||||
|
|
||||||
bCBHasChanged = FALSE;
|
bCBHasChanged = FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11820,12 +11820,12 @@ static void test_clipboard_viewers(void)
|
||||||
/* Test that changing the clipboard actually refreshes the registered viewer. */
|
/* Test that changing the clipboard actually refreshes the registered viewer. */
|
||||||
clear_clipboard(hWnd1);
|
clear_clipboard(hWnd1);
|
||||||
wm_clipboard_changed[0].wParam = (WPARAM) GetClipboardOwner();
|
wm_clipboard_changed[0].wParam = (WPARAM) GetClipboardOwner();
|
||||||
ok_sequence(wm_clipboard_changed, "clear clipbd (viewer=owner=1)", TRUE);
|
ok_sequence(wm_clipboard_changed, "clear clipbd (viewer=owner=1)", FALSE);
|
||||||
|
|
||||||
/* Again, but with different owner. */
|
/* Again, but with different owner. */
|
||||||
clear_clipboard(hWnd2);
|
clear_clipboard(hWnd2);
|
||||||
wm_clipboard_changed_and_owned[1].wParam = (WPARAM) GetClipboardOwner();
|
wm_clipboard_changed_and_owned[1].wParam = (WPARAM) GetClipboardOwner();
|
||||||
ok_sequence(wm_clipboard_changed_and_owned, "clear clipbd (viewer=1, owner=2)", TRUE);
|
ok_sequence(wm_clipboard_changed_and_owned, "clear clipbd (viewer=1, owner=2)", FALSE);
|
||||||
|
|
||||||
/* Test re-registering same window. */
|
/* Test re-registering same window. */
|
||||||
hRet = SetClipboardViewer(hWnd1);
|
hRet = SetClipboardViewer(hWnd1);
|
||||||
|
|
Loading…
Reference in New Issue