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/29 16:07,
3.21.159.223: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://sxlist.com/Techref/os/win/api/win32/mess/src/msg26_22.htm"> WM_PAINTCLIPBOARD</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.