void HideCaret(hWnd)
This function hides the caret by removing it from the display screen. Although the caret is no longer visible, it can be displayed again by using the ShowCaret function. Hiding the caret does not destroy its current shape.
The HideCaret function hides the caret only if the given window owns the caret. If the hWnd parameter is NULL, the function hides the caret only if a window in the current task owns the caret.
Hiding is cumulative. If HideCaret has been called five times in a row, ShowCaret must be called five times before the caret will be shown.
Parameter | Type/Description |
hWnd | HWND Identifies the window that owns the caret, or it is NULL to indirectly specify the window in the current task that owns the caret. |
None.