How to change the appearence of mouse pointer to sand Time
-
Hai I have an MFC application in which i download a binary file into a device. I have a status bar, which tells the progress of download, during this time i want to change the appearence of the mouse pointer to a sand time which is being done in almost all applications , how to do it ? Thanks!
-
Hai I have an MFC application in which i download a binary file into a device. I have a status bar, which tells the progress of download, during this time i want to change the appearence of the mouse pointer to a sand time which is being done in almost all applications , how to do it ? Thanks!
BeginWaitCursor()[^] and EndWaitCursor()[^]
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
-
Hai I have an MFC application in which i download a binary file into a device. I have a status bar, which tells the progress of download, during this time i want to change the appearence of the mouse pointer to a sand time which is being done in almost all applications , how to do it ? Thanks!
If you are using MFC then try,
BeginWaitCursor();
...
EndWaitCursor();or
CCmdTarget::BeginWaitCursor();
...
CCmdTarget::EndWaitCursor();Thanks.
-
Hai I have an MFC application in which i download a binary file into a device. I have a status bar, which tells the progress of download, during this time i want to change the appearence of the mouse pointer to a sand time which is being done in almost all applications , how to do it ? Thanks!
[CWaitCursor](http://msdn.microsoft.com/en-us/library/wc7bzytb%28VS.80%29.aspx)[[^](http://msdn.microsoft.com/en-us/library/wc7bzytb%28VS.80%29.aspx)]
-
Hai I have an MFC application in which i download a binary file into a device. I have a status bar, which tells the progress of download, during this time i want to change the appearence of the mouse pointer to a sand time which is being done in almost all applications , how to do it ? Thanks!
u can use SetCursor function
SetCursor(LoadCursor(NULL, IDC_WAIT));
IDC_WAIT is HourGlass
-
Hai I have an MFC application in which i download a binary file into a device. I have a status bar, which tells the progress of download, during this time i want to change the appearence of the mouse pointer to a sand time which is being done in almost all applications , how to do it ? Thanks!
In addition to your other replies, you might be up/downloading the file using some sort of background thread. If the upload takes any length of time, I *hope* you're using a thread to keep your UI responsive. In which case, you will also have to handle WM_SETCURSOR, other wise as soon as the mouse moves, your cursor will go back to normal. Yours-been-bitten-by-this-in-the-past, Iain.
-
Hai I have an MFC application in which i download a binary file into a device. I have a status bar, which tells the progress of download, during this time i want to change the appearence of the mouse pointer to a sand time which is being done in almost all applications , how to do it ? Thanks!
kapardhi wrote:
...how to do it ?
Simply respond to the
WM_SETCURSOR
message."Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch