Microsoft KB Archive/74274

{|
 * width="100%"|

INFO: WM_SIZECLIPBOARD Must Be Sent by Clipboard Viewer App

 * }

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

-

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 kbOSWinNT kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin

Issue type : kbinfo

Technology : kbWin32SDKSearch kbAudDeveloper kbWin3xSearch kbSDKSearch kbWin32sSearch kbWinSDKSearch kbWinSDK300 kbWinSDK310