Results 1 to 6 of 6

Thread: Making the Cursor Invisible

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 1999
    Posts
    89
    How would you do that using Builder, I tried SetCursor(NULL); but it wouldn't compile. So whats another way to do it.

    THANKS

  2. #2
    Guest
    ShowCursor(0);

  3. #3
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    is there any library to add?

    HI, I am a newbie in c++, I was wondering if I need to add any libraries to make use the statment:
    Showcursor(0);???

    Thanks in advance
    ===========================
    Kourosh Gonabadi
    VB Programmer
    C++ Newbie
    Graphic Designer
    ===========================

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    it's api, so include windows.h
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5
    Hyperactive Member jovton's Avatar
    Join Date
    Nov 2000
    Location
    South Africa
    Posts
    266

    Smile

    the ShowCursor API call just might not be good enough.
    If you're going to hide the cursor for your own application only, then it will work fine, but to hide the cursor for the entire system, it will require a little bit more work.

    If you want, I can give a sample.
    jovton

  6. #6
    Hyperactive Member Warmaster199's Avatar
    Join Date
    Aug 2000
    Location
    Canada
    Posts
    306
    You can do it the DOS way as well...
    Code:
    /* Shows the mouse cursor */
    void showmouseptr()
    {
        i.x.ax=1;
        int86(0x33,&i,&o);
    }
    
    /* Hides the mouse cursor */
    void hidemouseptr()
    {
        i.x.ax=2;
        int86(0x33,&i,&o);
    }
    Now how's that?
    Designer/Programmer of the Comtech Operating System(CTOS)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width