diff --git a/samples/taskbar/tbtest.cpp b/samples/taskbar/tbtest.cpp index 54f2e79215..397a438fc2 100644 --- a/samples/taskbar/tbtest.cpp +++ b/samples/taskbar/tbtest.cpp @@ -148,7 +148,7 @@ void MyDialog::OnAbout(wxCommandEvent& WXUNUSED(event)) "(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);