// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "taskbar.h"
#endif
#if defined(__WIN95__)
-#include <windows.h>
-
+#include "wx/msw/private.h"
#include "wx/msw/winundef.h"
#include <string.h>
#include "wx/taskbar.h"
-#include "wx/msw/private.h"
#ifdef __GNUWIN32_OLD__
#include "wx/msw/gnuwin32/extra.h"
#endif
-#ifdef __SALFORDC__
+#ifdef __WXWINCE__
+ #include <winreg.h>
#include <shellapi.h>
#endif
if ( !tooltip.empty() )
{
notifyData.uFlags |= NIF_TIP;
- lstrcpyn(notifyData.szTip, tooltip.c_str(), WXSIZEOF(notifyData.szTip));
+// lstrcpyn(notifyData.szTip, tooltip.c_str(), WXSIZEOF(notifyData.szTip));
+ wxStrncpy(notifyData.szTip, tooltip.c_str(), WXSIZEOF(notifyData.szTip));
}
bool ok = Shell_NotifyIcon(m_iconAdded ? NIM_MODIFY
s_inPopup = true;
- bool rval = false;
wxWindow* win;
int x, y;
wxGetMousePosition(&x, &y);
// Work around a WIN32 bug
::SetForegroundWindow ((HWND) win->GetHWND ());
- rval = win->PopupMenu(menu, 0, 0);
+ bool rval = win->PopupMenu(menu, 0, 0);
// Work around a WIN32 bug
::PostMessage ((HWND) win->GetHWND(),WM_NULL,0,0L);