.NET
respond.txt
Associated article: Application Responsiveness
Tags: .NET C/C++ Tools Design
Published source code accompanying the article by Joe Duffy in which he shows how to build is snappy UIs that respond to input promptly, and don't leave users hanging.
Application Responsiveness
by Joe Duffy
Example 1:
MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
Example 2:
class MyWindow : Window {
Button myButton = /*...*/;
void myButton_Click(object sender, RoutedEventArgs e) {
ThreadPool.QueueUserWorkItem(delegate {
// Perform intensive operation
myButton.Dispatcher....


