X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c25a510b30bd87f26deaf3532a48d29a158f0aea..80d2803f703d1b238f42725504f08266ef02defe:/samples/taskbar/tbtest.cpp diff --git a/samples/taskbar/tbtest.cpp b/samples/taskbar/tbtest.cpp index 74a7200000..45896485f1 100644 --- a/samples/taskbar/tbtest.cpp +++ b/samples/taskbar/tbtest.cpp @@ -103,14 +103,19 @@ BEGIN_EVENT_TABLE(MyTaskBarIcon, wxTaskBarIcon) EVT_MENU(PU_EXIT, MyTaskBarIcon::OnMenuExit) END_EVENT_TABLE() -void MyTaskBarIcon::OnMenuRestore(wxEvent& ) +void MyTaskBarIcon::OnMenuRestore(wxCommandEvent& ) { dialog->Show(TRUE); } -void MyTaskBarIcon::OnMenuExit(wxEvent& ) +void MyTaskBarIcon::OnMenuExit(wxCommandEvent& ) { dialog->Close(TRUE); + + // Nudge wxWindows into destroying the dialog, since + // with a hidden window no messages will get sent to put + // it into idle processing. + wxGetApp().ProcessIdle(); }