#pragma hdrstop
#endif
+#if wxUSE_TASKBARICON
+
#ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/frame.h"
notifyData.hIcon = GetHiconOf(icon);
}
+ // set NIF_TIP even for an empty tooltip: otherwise it would be impossible
+ // to remove an existing tooltip using this function
+ notifyData.uFlags |= NIF_TIP;
if ( !tooltip.empty() )
{
- notifyData.uFlags |= NIF_TIP;
-// lstrcpyn(notifyData.szTip, tooltip.c_str(), WXSIZEOF(notifyData.szTip));
wxStrncpy(notifyData.szTip, tooltip.c_str(), WXSIZEOF(notifyData.szTip));
}
return Shell_NotifyIcon(NIM_DELETE, ¬ifyData) != 0;
}
+#if wxUSE_MENUS
bool wxTaskBarIcon::PopupMenu(wxMenu *menu)
{
wxASSERT_MSG( m_win != NULL, _T("taskbar icon not initialized") );
return rval;
}
+#endif // wxUSE_MENUS
void wxTaskBarIcon::RegisterWindowMessages()
{
return 0;
}
+
+#endif // wxUSE_TASKBARICON
+