OnIdle Member Function
When no Windows messages are being processed, the framework calls the CWinApp member function OnIdle (described in the MFC Library Reference).
Override OnIdle
to perform background tasks. The default version updates the state of user-interface objects such as toolbar buttons and performs cleanup of temporary objects created by the framework in the course of its operations. The following figure illustrates how the message loop calls OnIdle
when there are no messages in the queue.
The Message Loop
For more information about what you can do in the idle loop, see Idle Loop Processing.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för