#85 CWaitCursor

wont-fix
None
5
2014-02-23
2012-11-15
Anonymous
No

Here is a short example;

<1st do something that takes time>
<2nd do something that processes messages>
<3rd do something that takes time>

It would be nice to have a function in CWaitCursor to reset the cursor after 2nd line because processioning messages changes the cursor back to normal. Like this:
CWaitCursor wait;
<1st do something that takes time>
<2nd do something that processes messages>
wait.Reset();
<3rd do something that takes time>

Now we have tocode the above examle like this;
{
CWaitCursor wait;
<1st do something that takes time>
}
<2nd do something that processes messages>
{
CWaitCursor wait;
<3rd do something that takes time>
}

The reset function can be implemented like this:
voidl CWaitCursor::Reset()
{
if (!Set())
::SetCursor(m_hWaitCursor);
}

Discussion

    • assigned_to: Nenad Stefanovic
    • Group: --> Next Release (example)
     
    • status: open --> wont-fix
     
  • Just call CWaitCursor::Restore() after <1st do something that takes time>