RE: modal dialog: Wait until message queue runs dry before calling ShowWindow()