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:
@@ -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"));
|
||||
|
||||
|
Reference in New Issue
Block a user