O'Reilly logo

Microsoft® Mobile Development Handbook by Peter Foot, Daniel Moth, Andy Wigley

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

Maintaining a Responsive User Interface

The last section ended with a demonstration of an unresponsive UI. It is interesting to note why an application may become unresponsive.

Message Pump

Every Windows application has what is called a message pump. In reaction to user interaction, Windows sends Windows messages to the message queue of an application. In .NET, the message is handled for the developer and is translated into a friendly .NET event. For example, when the user taps the screen, Windows sends a WM_LBUTTONDOWN message (followed by a WM_LBUTTONUP) to the message pump of your application, and this is translated into MouseDown, MouseUp events and possibly, depending on the control, into a Click event. The main thread of your process is simply ...

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