Hiding cursor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pekka Jarvela

    Hiding cursor

    How can I hide the cursor in C++?

    I am using Visual Studio .NET and the problem is that the cursor
    remains blinking on the opening screen on my program. How can I set it
    to be black so that it wouldn't apperar?

    Pekka
  • Martin Gieseking

    #2
    Re: Hiding cursor

    pekkajarvela@em ail.com (Pekka Jarvela) wrote in
    news:6780c2c2.0 405120647.2b5fb 6e6@posting.goo gle.com:
    [color=blue]
    > How can I hide the cursor in C++?
    >
    > I am using Visual Studio .NET and the problem is that the cursor
    > remains blinking on the opening screen on my program. How can I set it
    > to be black so that it wouldn't apperar?[/color]

    You can't. There is nothing like a cursor in C++. You have to look for
    system dependent functions that handle the cursor's appearance.

    Martin

    Comment

    • Julie

      #3
      Re: Hiding cursor

      Pekka Jarvela wrote:[color=blue]
      >
      > How can I hide the cursor in C++?
      >
      > I am using Visual Studio .NET and the problem is that the cursor
      > remains blinking on the opening screen on my program. How can I set it
      > to be black so that it wouldn't apperar?
      >
      > Pekka[/color]

      Using std C++:

      class Cursor
      {
      public:
      Cursor():m_visi ble(true){}
      void Visible(bool visible) { m_visible = visible; }
      private:
      bool m_visible;
      };

      // in your code:
      Cursor cursor;
      cursor.Visible( false);

      If the above doesn't produce the intended results for you, you will need to
      follow up in a newsgroup specific to your target operating system.

      Comment

      Working...