win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinShowCursor (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINCURSORS
 
BOOL WinShowCursor(hwnd, fShow)
HWND hwnd;     /* handle of the window */
BOOL fShow;    /* show/hide flag       */
 
The WinShowCursor function displays or hides the cursor associated with a
specified window. A cursor show level count is kept internally. (You can
retrieve this value using the WinQuerySysValue function with SV_CURSORLEVEL
as the system value.) It is incremented by a hide operation and decremented
by a show operation. The cursor is visible only if the count is zero.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwnd       Identifies the window to which the cursor belongs.
 
fShow      Specifies whether the cursor is shown or hidden. If TRUE, the
           cursor is made visible. If FALSE, the cursor is made invisible.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinCreateCursor, WinDestroyCursor, WinQueryCursorInfo, WinQuerySysValue