Exercises
Solutions to these exercises are supplied in Section B.2.2
Describe Figure 7-6, a state diagram that describes the states and transitions between states for a window, as used in Microsoft Windows. Identify the states and transitions shown in the diagram.

Figure 7-6. States and transitions for a window
Update Figure 7-6 stepwise to show the following details. After each step, check your answers against the solutions shown in Appendix B:
If a window receives a
Restoreevent, indicating that the window should be restored or displayed, as one of many windows taking a portion of the space on the user screen, and the window is in theMinimizedorMaximizedstate, it will be changed to theRestoredstate.If a window receives a
Minimizeevent, indicating that the window should be minimized or displayed as an icon taking a minimal amount of space on the user screen, and the window is in theRestoredorMaximizedstate, it will be in theMinimizedstate.If a window receives a
Maximizeevent, indicating that the window should be maximized or displayed as the only window taking all the space on the user screen, and the window is in theMinimizedorRestoredstate, it will be in theMaximizedstate.Every time a window is being restored or maximized it performs a
Redrawaction to render itself.Every time a window is being minimized it requests that the OS reduce its application priority ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access