O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

User Experience

Nobody likes nonresponsive user interfaces (UIs). Figure 31.5 shows the devastating user experience that results when a program’s UI stops responding.

Image

FIGURE 31.5 A nonresponsive application.

But have you ever thought about how Windows knows that a user interface got stuck? The key concept to understanding this is the so-called message loop, where requests are posted to perform various UI operations. For example, the window manager may request the program to repaint its UI by posting a WM_PAINT message (for example, in response to the user resizing the window). Similarly, operations like click events or text input events are sent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required