INFO: WM_SIZECLIPBOARD Must Be Sent by Clipboard Viewer App
ID: Q74274
|
The information in this article applies to:
-
Microsoft Win32 Software Development Kit (SDK)
-
Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1
-
Microsoft Windows 2000
SUMMARY
The WM_SIZECLIPBOARD message is not generated by the Windows graphical
environment; the clipboard viewer generates this message.
An application that can display the clipboard contents, such as the
CLIPBRD.EXE application in Windows version 3.0, is a clipboard viewer.
When the size of the clipboard viewer's client area changes and the
clipboard contains a data handle for the CF_OWNERDISPLAY format, the
clipboard viewer must send the WM_SIZECLIPBOARD message to the current
clipboard owner. The GetClipboardOwner function returns the window
handle of the current clipboard owner. This window handle is the
handle in the last call to OpenClipboard.
When sending the WM_SIZECLIPBOARD message, the clipboard viewer must
specify two parameters. The wParam parameter identifies the clipboard
viewer's window handle. The low-order word of the lParam parameter
contains the handle to a block of global memory that holds a RECT data
structure. The RECT structure defines the area in the clipboard viewer
that the clipboard owner should paint.
Additional query words:
WIN16SDK
Keywords : kbClipboard kbNTOS kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS
Version : WINDOWS:3.0,3.1
Platform : WINDOWS
Issue type : kbinfo