Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Cursor 2

Status
Not open for further replies.

FORAND

Programmer
May 26, 2003
64
0
0
CA
An easy one...

How can I change the cursor to make it look like an hourglass?

Thanks

 
>>How can I change the cursor to make it look like an >>hourglass?


When ever some long procedure is to be performed we generally prefer showing the hourglass cursor.
Doing that is very easy. Just create an object of MFC class
CWaitCursor.

ex:

void someclass::somefunction()
{
CWaitCursor c1;

for (int i=0; i<10000000; i++)
{
}
}

U can also search and look for CWaitCursor in MSDN.
We donot need to do anything else.As soon as the function in which the object is created is finished the object automatically gets destroyed.

Hope this helps
cheers!







 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top