The DestroyCaret function destroys the caret’s current shape, frees the caret from the window, and removes the caret from the screen.
If the caret shape is based on a bitmap, DestroyCaret does not free the bitmap.
BOOL DestroyCaret(VOID)
This function has no parameters.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
DestroyCaret destroys the caret only if a window in the current task owns the caret. If a window that is not in the current task owns the caret, DestroyCaret does nothing and returns FALSE.
The caret is a shared resource; there is only one caret in the system. A window should create a caret only when it has the keyboard focus or is active. The window should destroy the caret before losing the keyboard focus or becoming inactive.
CreateCaret, HideCaret, ShowCaret
See:
file: /Techref/os/win/api/win32/func/src/f16_5.htm, 2KB, , updated: 2001/6/26 10:24, local time: 2024/11/26 21:58,
3.144.38.184: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/func/src/f16_5.htm"> DestroyCaret</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. |
Welcome to sxlist.com! |
.