The WM_PAINTCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer’s client area needs repainting.
WM_PAINTCLIPBOARD hwndViewer = (HWND) wParam; // handle of clipboard viewer window hglbPs = (HGLOBAL) lParam; // handle of PAINTSTRUCT object
If an application processes this message, it should return zero.
To determine whether the entire client area or just a portion of it needs repainting, the clipboard owner must compare the dimensions of the drawing area given in the rcpaint member of PAINTSTRUCT to the dimensions given in the most recent WM_SIZECLIPBOARD message.
The clipboard owner must use the GlobalLock function to lock the memory that contains the PAINTSTRUCT structure. Before returning, the clipboard owner must unlock that memory by using the GlobalUnlock function.
GlobalLock, GlobalUnlock, PAINTSTRUCT, WM_SIZECLIPBOARD
file: /Techref/os/win/api/win32/mess/src/msg26_22.htm, 2KB, , updated: 2000/4/7 11:20, local time: 2024/12/25 22:07,
3.144.102.43:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/mess/src/msg26_22.htm"> WM_PAINTCLIPBOARD</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.