X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f00347ae385c0d7a9baabd55ed969e23364dba0..b15579781935495ff2a126b4ffac81f2cb51b99d:/samples/taskbar/tbtest.cpp diff --git a/samples/taskbar/tbtest.cpp b/samples/taskbar/tbtest.cpp index 397a438fc2..9723e48ae0 100644 --- a/samples/taskbar/tbtest.cpp +++ b/samples/taskbar/tbtest.cpp @@ -60,6 +60,16 @@ bool MyApp::OnInit() if ( !wxApp::OnInit() ) return false; + if ( !wxTaskBarIcon::IsAvailable() ) + { + wxMessageBox + ( + "There appears to be no system tray support in your current environment. This sample may not behave as expected.", + "Warning", + wxOK | wxICON_EXCLAMATION + ); + } + // Create the main window gs_dialog = new MyDialog(wxT("wxTaskBarIcon Test Dialog"));