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"));
"(C) 1997 Julian Smart\n"
"(C) 2007 Vadim Zeitlin";
-#ifdef __WXMSW__
+#if defined(__WXMSW__) && wxUSE_TASKBARICON_BALLOONS
m_taskBarIcon->ShowBalloon(title, message, 15000, wxICON_INFORMATION);
#else // !__WXMSW__
wxMessageBox(message, title, wxICON_INFORMATION, this);