Thread: enable/disable mouse cursor

  1. #1
    Registered User toaster's Avatar
    Join Date
    Apr 2002
    Posts
    161

    enable/disable mouse cursor

    anyone know of a WINAPI or ASM call to do such function (particularly in DOS mode or console window)?
    thanks.
    think only with code.
    write only with source.

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    you can find asm functions in the flashdaddee assembly board
    in particular, look up interrupt 0x33. for a question on the winapi, visit the windows forum.

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    In winapi:

    ShowCursor(FALSE);//makes it not visible
    ShowCursor(TRUE);//makes it visible

    The ShowCursor function displays or hides the cursor.

    int ShowCursor(

    BOOL bShow // cursor visibility flag
    );
    Parameters

    bShow

    Specifies whether the internal display counter is to be incremented or decremented. If bShow is TRUE, the display count is incremented by one. If bShow is FALSE, the display count is decremented by one.

    Return Values

    The return value specifies the new display counter.

    Remarks

    This function sets an internal display counter that determines whether the cursor should be displayed. The cursor is displayed only if the display count is greater than or equal to 0. If a mouse is installed, the initial display count is 0. If no mouse is installed, the display count is -
    1.
    EDIT: fixed the quote format

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. get visible mouse cursor height
    By eXistenZ in forum Windows Programming
    Replies: 10
    Last Post: 09-05-2008, 09:46 PM
  2. Getting the position of the mouse cursor
    By Mavix in forum Game Programming
    Replies: 5
    Last Post: 12-27-2007, 04:02 PM
  3. Program that moves mouse cursor and clicks
    By chongo in forum C++ Programming
    Replies: 6
    Last Post: 09-08-2003, 03:50 PM
  4. changing mouse cursor
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 12-25-2001, 09:39 PM