Description: The target
Pause the application in a function until the user clicks the mouse or button.
2. The strategy
When the application looks free, it actually runs the function: C Wi, n A p, p: : R u n (). This function not only has
Query the logic function of the new message and complete a large number of including updating the user interface state and removing temporary memory objects
Application maintenance work. Therefore, if you need to stop running and wait for messages somewhere in your application, you need to
Perform this application maintenance work. Since Microsoft provides the source code of C Wi n A p () : : R u n () function, this example will
Create a new version of this function that can be used anywhere in the application.
File list (Check if you may need any files):