By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,681 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

Hiding cursor

P: n/a
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
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
pe**********@email.com (Pekka Jarvela) wrote in
news:67**************************@posting.google.c om:
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?


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
Jul 22 '05 #2

P: n/a
Pekka Jarvela wrote:

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


Using std C++:

class Cursor
{
public:
Cursor():m_visible(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.
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.