X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b15f9375cb61b427c70fe60d3362c9c8eee19e03..cf78bdcb68264bbf066df00028911ed55f4d2c5c:/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"));