>>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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.