473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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
Jul 22 '05 #1
2 5061
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul M. | last post by:
Hi, This might be more of an HTML question, but I'm encountering it via a javascript function. I'm trying to do rollovers without using images. Here's some of the code: <script...
2
by: Sha Crawford | last post by:
How do I hide the mouse pointer in a particular MS Access form? Thanks. Sha Crawford www.sha-crawford.co.uk
6
by: jcrouse | last post by:
This is kind of a continuation of another thread that was somewhat resolved: Well, the dilemma seems to be this. I want to be able to hide the DOS box AND pause the code until execution is...
9
by: bob | last post by:
Hi, I know there exists a good reason why the designers of c++ decided that function hiding should exist. But I don't know why. Can anybody provide a good reason/example of a case where function...
0
by: Bartek Tatkowski | last post by:
Hi! How can I hide the cursor globaly, not just for a window?
1
by: [EVA-02]Tseng | last post by:
Hi, got a problem with Contextmenu. I got a ListView and want to have the ContextMenu only shown when the user rightclicks an Element in the Listview. If ther is no element under the mouse cursor...
9
by: dd | last post by:
Does anyone have a cross-browser solution for hiding scrollbars and/or disabling scroll for the whole page? When the user clicks something, I want to display a DIV that fills the whole client...
162
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you...
1
by: RLN | last post by:
I have a form that is set to "continuous forms" view. Several rows of data are shown to the user at the same time. I want to set FieldX and FieldY to true and show them only if the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.