added wxTaskBarIcon::IsAvailable

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-09-30 20:54:02 +00:00
parent b15f9375cb
commit cf78bdcb68
5 changed files with 50 additions and 2 deletions

View File

@@ -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"));