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/11/9 18:55,
18.191.215.202:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©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://massmind.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 massmind.ecomorder.com! |
.