How do I get a busy tire on Windows Mobile 6?

Windows Mobile displays a busy wheel - a spinning color wheel - when something happens. I cannot find in the documentation how this is done - can someone point me in the right direction?

We have a situation where we need to encourage the user to say that we have been doing things for a while, but we do not know how long it will take. Thus, we cannot make a progress bar, therefore, a proposal to use this busy wheel.

+3
source share
4 answers

Use SetCursor / LoadCursor / ShowCursor , for example:

SetCursor(LoadCursor(NULL, IDC_WAIT));

// my code

ShowCursor(FALSE);
+5

.

:

System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;

:

System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default;

+4

, , CWaitCursor. , , , , , .

void DoSomethingSlow()
{
  CWaitCursor cw;
.
.
.
.
}
+2

: http://mobiledeveloper.wordpress.com/2006/07/05/wait-cursor/

Cursor.Current = Cursors.WaitCursor;

try {
 Cursor.Current = Cursors.WaitCursor;
 //Do something time consuming…
}
finally {
 Cursor.Current = Cursors.Default;
}
0

Source: https://habr.com/ru/post/1698799/


All Articles